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