[wp-trac] [WordPress Trac] #27605: WP Editor link dialog content visible before Tiny MCE is initialized

WordPress Trac noreply at wordpress.org
Mon Mar 31 09:40:34 UTC 2014


#27605: WP Editor link dialog content visible before Tiny MCE is initialized
--------------------------+-----------------------------
 Reporter:  mattheu       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  ui            |
--------------------------+-----------------------------
 To reproduce:

 * Add a tinyMCE using `wp_editor()` to an options page, inside a hidden
 element.
 * The content of the editor link dialog is displayed at the bottom of the
 page. See screenshot below.
 * When the hidden element is shown, initialize the editor. The link dialog
 content disappears.

 [[Image(https://dl.dropboxusercontent.com/s/qijk9yontf8zbdd/2014-03-31%20at%2010.33.png)]]

 This happens because the link dialog is hidden using CSS found in
 editor.css.

 This is not loaded until the TinyMCE editor is initialized, so until this
 point the content is visible, but unstyled.

 This patch fixes this bug by hiding the wp-link-wrap element using an
 inline style so it is not visible on page load.

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


More information about the wp-trac mailing list