[wp-trac] [WordPress Trac] #58260: Enable `elementpath` for the Classic Block TinyMCE editor

WordPress Trac noreply at wordpress.org
Fri May 5 14:47:08 UTC 2023


#58260: Enable `elementpath` for the Classic Block TinyMCE editor
--------------------------+-----------------------------
 Reporter:  afercia       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:
 Severity:  normal        |   Keywords:  has-screenshots
  Focuses:                |
--------------------------+-----------------------------
 So far, the Classic Block renders the TinyMCE editor within the WordPress
 Editor canvas. In this case, disabling the TinyMCE `elementpath` makes
 perfectly sense, as it would be perceived as an extraneous I element, in
 this context. For this reason, `elementpath` is explicitly disabled in the
 TinyMCE settings, see https://github.com/WordPress/wordpress-
 develop/blob/d744c4d39729e2f1df76d93d99560d791ece3043/src/wp-includes
 /class-wp-editor.php#L933

 See first screenshot for the current state.

 However, on latest Gutenberg, the Classic Block opens a modal dialog. The
 TinyMCE editor renders within the modal dialog. In this context, there's
 no reason to disable `elementpath`. The elements path shown in the TinyMCE
 status bar is a useful tool that helps users with selecting the elements
 within the editor.

 Currently, the status bar shows ad the bottom of the editor, but it's
 empty. See second screenshot.

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


More information about the wp-trac mailing list