#32873 closed defect (bug) (fixed)
Remove additional toolbar html when editor instance is removed
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.3 | Priority: | normal |
| Severity: | normal | Version: | 4.1 |
| Component: | Editor | Keywords: | has-patch |
| Focuses: | javascript | Cc: |
Description
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.
Attachments (2)
Change History (6)
#1
@
10 years ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 4.3
- Version changed from trunk to 4.1
Good catch and thanks for the patch!
#2
@
10 years ago
- Owner set to iseulde
- Resolution set to fixed
- Status changed from new to closed
In 33294:
Note: See
TracTickets for help on using
tickets.
Screenshot of toolbar markup after removing the instance