TinyMCE:Configuration/mode

From Moxiecode Documentation Wiki

Jump to: navigation, search

Option: mode

This option specifies how elements are converted into TinyMCE WYSIWYG editor instances. This option can be set to any of the values below.

textareas
Converts all textarea elements to editors when the page loads.
specific_textareas
Converts all textarea elements with the textarea_trigger attribute set to "true". It will also convert all textarea elements that match the editor_selector setting or don't match the editor_deselector setting.
Note: The textarea_trigger option is deprecated. We strongly recommend you to use the editor_selector/editor_deselector options instead since they validate with W3C specifications.
exact
Converts elements of the specified names, as listed in the elements option. These elements can be any kind -- for example, textareas or divs.
none
Does not convert any elements. Later, your page can call the tinyMCE.execCommand("mceAddControl", true, "id"); function.


Example of usage of the mode option:

tinyMCE.init({
	...
	mode : "exact",
	elements : "elm1,elm2"
});

...

<textarea id="elm1" ...
Personal tools