search for: idcounter

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

Did you mean: counter
2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
...s a textarea like this: <textarea 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(&qu...