Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Funció: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Crea la fàbrica del connector del selector de components. Retorna una funció adequada per a tinymce.PluginManager.add().

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

Paràmetres

options

ComponentsPickerOptions

Retorna

(editor) => void