[wp-trac] [WordPress Trac] #39248: TinyMCE JavaScript editor is broken in 4.7
WordPress Trac
noreply at wordpress.org
Mon Dec 12 12:28:02 UTC 2016
#39248: TinyMCE JavaScript editor is broken in 4.7
--------------------------------------------+-----------------------------
Reporter: argonius | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.7
Severity: normal | Keywords:
Focuses: ui, javascript, administration |
--------------------------------------------+-----------------------------
TinyMCE JavaScript editor API does not work as expected in 4.7. It works
in 4.6.
Steps to reproduce:
1. Add following code to your admin panel:
{{{
function my_editor(){
wp_editor( '', 'myeditor', array(
'textarea_name' => 'mytextarea'
) );
}
add_action( 'admin_head', 'my_editor' );
}}}
2. Open browser's console and type in:
{{{
tinyMCE.activeEditor
}}}
'''Expected''': Returns JavaScript object (like in 4.6)
'''Actual''': Returns null
Note: You can also test with tinyMCE.editors, it's empty array in 4.7
e.g. "[]", but it should contain 1 item.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39248>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list