Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Função: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Cria a fábrica do plugin do seletor de componentes. Retorna uma função adequada para tinymce.PluginManager.add().

Uso: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

Parâmetros ​

options ​

ComponentsPickerOptions

Retorna ​

(editor) => void