Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Function: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Create the components picker plugin factory. Returns a function suitable for tinymce.PluginManager.add().

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

Parameters

options

ComponentsPickerOptions

Returns

(editor) => void