OpenTiny Model options

OpenTiny 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 OpenTiny should use. The default model included with OpenTiny 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 OpenTiny. If the specified model is not found, OpenTiny 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 OpenTiny 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'
});