[wp-trac] [WordPress Trac] #46085: TinyMCE Classic Block: fix the edit image modal

WordPress Trac noreply at wordpress.org
Wed Jan 23 20:03:34 UTC 2019

#46085: TinyMCE Classic Block: fix the edit image modal
 Reporter:  azaozz        |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.1
Component:  TinyMCE       |     Version:  5.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:

Comment (by azaozz):

 In 46085.diff:
 - Add a data-* attribute to the selected image before opening the Edit
 Image modal, then use it to select the image node before applying changes.
 - Limit the caption wrapper width when editing in the Classic BLock to the
 editor width. This is passed from the media modal but is wrong in the
 Block Editor as it comes from the old `$content_width` global.
 - Some minor cleanup.

Ticket URL: <https://core.trac.wordpress.org/ticket/46085#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list