Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I active IPE mode, click 'Add new pane' button, select 'New custom content' - CKEditor will show up, but if then I click on 'Cancel' button and click on on 'New custom content' again - CKEditor won't show up with Javascript error.
Comment | File | Size | Author |
---|---|---|---|
#2 | ckeditor_fix_panels_IPE-1990224-2.patch | 490 bytes | artemln |
#1 | ckeditor-1990224-2.patch | 537 bytes | k0teg |
Comments
Comment #1
k0teg CreditAttribution: k0teg commentedHere is a workaround for this issue.
Comment #2
artemln CreditAttribution: artemln commentedWhen use this patch switching the text formats does not work. Because the CKEditor does not remove old HTML.
I have attached a new patch.
Comment #3
DamienMcKennaThis would be good to confirm & fix for the next release.
Comment #4
MediaFormat CreditAttribution: MediaFormat commentedRan it on simplytest.me, using chrome.
Here is the console log :
Comment #5
nagy.balint CreditAttribution: nagy.balint commentedI have the same issue, but for me the workaround does not work.
Comment #6
nagy.balint CreditAttribution: nagy.balint commentedLikely the issue is that the "
$(document).trigger('CToolsDetachBehaviors', $('#modalContent'));
" Is not triggered when the cancel button is pressed so ckeditor will not call its detach function.Comment #7
nagy.balint CreditAttribution: nagy.balint commentedAnd the patch here solves my problem #2497645: CToolsDetachBehaviors is not called on modal when another modal is opened on the same page
Comment #8
recrit CreditAttribution: recrit commentedPatch at #2 worked for me when switching formats of a text field within an embedded paragraph.
EDIT: This removed the js errors, but now when switching between formats it will create a new editor after each switch, stacking them on top of each other.