[wp-trac] [WordPress Trac] #40855: TinyMCE error when selecting an image in WordPress 4.5/4.6

WordPress Trac noreply at wordpress.org
Wed May 24 12:13:02 UTC 2017


#40855: TinyMCE error when selecting an image in WordPress 4.5/4.6
--------------------------+-----------------------------
 Reporter:  khromov       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.5.7
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 This is related to issues #40305 and #40360

 Specifically, it relates to how this issue should be mitigated for older
 WordPress version. As it currently is, inserting images into the WYSIWYG
 is broken for Chrome users running anything lower than WordPress 4.7,
 because those WordPress versions run an older version of TinyMCE.

 I would like to see a backported patch for older versions to resolve this
 issue. Not doing that would be a very troubling precedent - essentially
 breaking the editor for anyone not on the latest version of WordPress.

 The issue:
 - Insert an image via Add media dialogue
 - Click on the image
 - The image box/buttos do not appear, error in console is:


 {{{
 tinymce.min.js?ver=4310-20160418:10 Uncaught DOMException: Failed to
 execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
 }}}



 This issue in the TinyMCE tracker:
 https://github.com/tinymce/tinymce/issues/3611

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


More information about the wp-trac mailing list