Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

Fungsi: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

Buat kilang pemalam pemilih komponen. Mengembalikan fungsi yang sesuai untuk tinymce.PluginManager.add().

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

Parameter ​

options ​

ComponentsPickerOptions

Mengembalikan ​

(editor) => void