Skip to content

pantoken-root / renderers/tinymce/src / createComponentsPlugin

ฟังก์ชัน: createComponentsPlugin() ​

createComponentsPlugin(options): (editor) => void

สร้าง factory สำหรับปลั๊กอินตัวคัดเลือกคอมโพเนนต์。 ส่งคืนฟังก์ชันที่เหมาะกับ tinymce.PluginManager.add()。

การใช้งาน: tinymce.PluginManager.add( "pantokenComponents", createComponentsPlugin({ model, currentAssets, onMissingAsset }) );

พารามิเตอร์ ​

options ​

ComponentsPickerOptions

คืนค่า ​

(editor) => void