Opened 4 years ago
Last modified 4 weeks ago
#58260 reopened defect (bug)
Enable `elementpath` for the Classic Block TinyMCE editor
| Reported by: | afercia | Owned by: | afercia |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2 |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | has-screenshots has-patch |
| Cc: | Focuses: |
Description (last modified by )
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 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 at the bottom of the editor, but it's empty. See second screenshot.
Attachments (5)
Change History (15)
@
4 years ago
Latest Gutenberg: rendered within a modal dialog with empty status bar and no element path.
#2
@
4 years ago
One more place where this change will restore the elements path is the Text widget in the 'Classic' Widgets page and wherever plugins / themes initialize TinyMCE by using wp_enqueue_editor().
This ticket was mentioned in PR #14133 on WordPress/wordpress-develop by @afercia.
4 weeks ago
#5
Use of AI Tools
None
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Current state: rendered in the editor canvas with no status bar and no elements path.