When switching from a text format that is not configured to use CKEditor to a text format configured to use CKEditor, a recursion error occurs caused by media_wysiwyg's media_ckeditor/plugin.js when processing a list element (ul, ol).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

recrit’s picture

Status: Active » Needs review
FileSize
1007 bytes

I found that if I changed the widget's upcast function to only set the HTML if it replaced something then it would not cause the recursion error. The attached patch adds this check.
This could be due to the fact that setting the HTML for a list item results in markup not equivalent to the original which then causes another DOM changed event.

Chris Matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 4 year old patch in #1 media_ckeditor/plugin.js does not apply to the latest media 7.x-2.x-dev and if still relevant needs a reroll.

Chris Matthews’s picture

Status: Needs work » Closed (outdated)

Closing as outdated per joseph.olstad.