[wp-trac] [WordPress Trac] #47900: Error on update MCE Views in gutenberg block "Classic Editor"

WordPress Trac noreply at wordpress.org
Mon Aug 19 13:49:45 UTC 2019


#47900: Error on update MCE Views in gutenberg block "Classic Editor"
----------------------------+-----------------------------
 Reporter:  vjik            |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:  5.2.2
 Severity:  major           |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47900>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list