TinyMCE Model options
TinyMCE model configuration is a future feature. The only supported model is the default (dom) feature. This option exist only for use in scenarios where the dom model cannot load automatically.
|
model
This option allows configuring which model TinyMCE should use. The default model included with TinyMCE is dom. Custom models are not supported at this time.
The name of the model should match the name of the folder within the models directory of TinyMCE. If the specified model is not found, TinyMCE will not load.
Type: String
Default value: 'dom'
Example: using
modeltinymce.init({
selector: 'textarea', // change this value according to your HTML
model: 'dom'
});
model_url
This option allows specifying the location of the dom model file. This is useful when loading TinyMCE from one URL e.g. a CDN, while loading the model from another e.g. a local server.
Type: String
Default value: undefined
Example: using
model_urltinymce.init({
selector: 'textarea', // change this value according to your HTML
model_url: '/mymodel/mymodel.js'
});