Make WordPress Core

Opened 14 months ago

#47900 new defect (bug)

Error on update MCE Views in gutenberg block "Classic Editor"

Reported by: vjik Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 5.2.2
Component: Editor Keywords:
Focuses: administration Cc:


By steps:

  • Install new site on WordPress 5.2.2.
  • Create new page.
  • Add editor block "Classic".
  • Add media gallery into classic editor with 2+ images.
  • Open edit gallery window.
  • Switch to another tab in the browser.
  • Little wait...
  • Back to tab with WordPress.
  • Any change in "edit gallery window" and click "Update gallery".
  • Gallery do not update and error in browser console.

Error in browser console:

wp-tinymce.js?ver=4940-20190515:3 Uncaught TypeError: Failed to execute 'setStart' on 'Range': parameter 1 is not of type 'Node'.
    at wp-tinymce.js?ver=4940-20190515:3
    at Object.map (wp-tinymce.js?ver=4940-20190515:3)
    at Object.select (wp-tinymce.js?ver=4940-20190515:3)
    at mce-view.min.js?ver=5.2.2:1
    at Function.s.findKey (underscore.min.js?ver=1.8.3:1)
    at Function.s.find.s.detect (underscore.min.js?ver=1.8.3:1)
    at N.d.update (mce-view.min.js?ver=5.2.2:1)
    at mce-view.min.js?ver=5.2.2:1
    at N.d.<anonymous> (mce-view.min.js?ver=5.2.2:1)
    at s (backbone.min.js?ver=1.2.3:1)

I think reason of problem in the following: after open "edit gallery window" gutenberg block updated, and after click "Update gallery" node for update (use in "update" function in mce-views) no longer in the document.

The problem is also observed in other plugins that use MCE Views for pretty view shortcodes.

Change History (0)

Note: See TracTickets for help on using tickets.