Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Fungsi: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Buat pabrik plugin pemilih komponen. Mengembalikan sebuah fungsi yang cocok untuk tinymce.PluginManager.add().

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

Parameter ​

options ​

ComponentsPickerOptions

Mengembalikan ​

(editor) => void