TinyMCE Model options

TinyMCE model configuration is a future feature. The only supported models are the default (dom) and the one provided by the premium Real-time Collaboration feature. These options 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 model

tinymce.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

Example: using model_url

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  model_url: '/mymodel/mymodel.js'
});