Skip to content

pantoken / renderers/tinymce/src / createComponentsPlugin

Функция: createComponentsPlugin()

createComponentsPlugin(options): (editor) => void

Создаёт фабрику плагина выбора компонентов. Возвращает функцию, подходящую для tinymce.PluginManager.add().

Использование: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

Параметры

options

ComponentsPickerOptions

Возвращаемое значение

(editor) => void