TinyMCE:Configuration/mode
From Moxiecode Documentation Wiki
[edit]
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 a textarea_trigger attribute set to "true".
- Note: This 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.
[edit]
Example of usage of the mode option:
tinyMCE.init({
...
mode : "exact",
elements : "elm1,elm2"
});
...
<textarea id="elm1" ...
