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.
Follow-up to #1732880: Implement EpicEditor:
The editor.unload()
code in Drupal.wysiwyg.editor.detach.epiceditor
needs to test for a trigger
value of "unload"
or it'll remove the editor any time the form is affected via AJAX, such as when you upload a file to a file field. Patch to follow.
Sorta related issue: #1988118: Add EpicEditor issue component
Comment | File | Size | Author |
---|---|---|---|
#1 | wysiwyg-epiceditor-ajax-bug-1988128-1.patch | 476 bytes | TravisCarden |
Comments
Comment #1
TravisCarden CreditAttribution: TravisCarden commentedComment #2
yannickooTested with multi value field and clicked on 'add another item', editor disappeared. After applied the patch the editor didn't disappeared. Why do you use
===
instead of==
?Comment #3
TravisCarden CreditAttribution: TravisCarden commented@yannickoo, re #2: because the linters like it better, if I recall. :) It's more precise.
Comment #4
TwoDThanks for the patch, and I'm sorry I didn't get to this earlier.
I incorporated a similar change into the patch in the linked issue, please test it instead.