Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Funktion: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Erstellt die Factory für das Komponenten-Auswahl-Plugin. Gibt eine Funktion zurück, die für tinymce.PluginManager.add() geeignet ist.

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

Parameter

options

ComponentsPickerOptions

Rückgabe

(editor) => void