search for: mceaddcontrol

Displaying 1 result from an estimated 1 matches for "mceaddcontrol".

2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
...name="text-foo" id="text-foo"><%= @item.text %></textarea> When my form appears on the page with the magic of Ajax (this is in a method in a wrapper object I use): this.editor_id = ''mce_editor_'' + tinyMCE.idCounter; tinyMCE.execCommand("mceAddControl", true, edit_element.id); In my ''Save'' function - the tinyMCE onsubmit code is hooked in too late for my purposes: tinyMCE.triggerSave(); The important part - when my Ajax form gets removed from the page: tinyMCE.execCommand("mceRemoveControl", true, this.edit...