[wp-trac] [WordPress Trac] #32873: Remove additional toolbar html when editor instance is removed
WordPress Trac
noreply at wordpress.org
Fri Jul 3 09:59:04 UTC 2015
#32873: Remove additional toolbar html when editor instance is removed
--------------------------+-----------------------------
Reporter: ungestaltbar | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: trunk
Severity: normal | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
Whenever a tinymce instance is (dynamically) created, the tinymce plugins
/wpeditimage/plugin.js
/wordpress/plugin.js
insert necessary toolbar markup to the document.
This markup is not removed from the DOM when removing an editor instance
by calling (for example)
tinyMCE.execCommand('mceRemoveEditor', true, editor_id);
I've attached a rough patch to demonstrate how removal could work and a
screenshot of the problem. I didn't find a native method to do this in the
tinymce documentation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32873>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list