public function save(o:Object):String
Saves the contents from a editor out to the textarea or div element that got converted into an editor instance.
This method will move the HTML contents from the editor into that textarea or div by getContent
so all events etc that method has will get dispatched as well.
Params
| Name |
Type |
Description |
| o |
Object |
Optional content object, this gets passed around through the whole save process. |
Returns
String HTML string that got set into the textarea/div.
Krupski
Oops sorry... try again.
-------- example #1 --------
var ed = tinymce.activeEditor; // get editor instance
ed.save(); save editor content to textarea
-------- example #1 --------
The save() function also returns the editor content if you want it:
-------- example #2 --------
var ed = tinymce.activeEditor; // get editor instance
var content = ed.save(); // editor content -> textarea and also to var content
alert(content); // pops up the raw editor contents
-------- example #2 --------
hope this helps.
Krupski
zivo
The syntax is not clear :-(
Can we have a demo, p l e a s e