/** * Card Plugin - ปลั๊กอินสำหรับการ์ดเนื้อหา */ (function(global) { 'use strict'; /** * คลาส CardPlugin * ปลั๊กอินสำหรับการ์ดเนื้อหา */ class CardPlugin { constructor(editor) { this.editor = editor; this.name = 'card'; this.title = 'การ์ด'; this.icon = 'style'; this.description = 'การ์ดเนื้อหา'; } /** * เริ่มต้นปลั๊กอิน */ init() { if (this.editor.config.debug) { console.log('CardPlugin เริ่มต้นแล้ว'); } } /** * รับเทมเพลตของปลั๊กอิน */ getTemplate() { return `
นี่คือเนื้อหาของการ์ด สามารถแก้ไขได้ตามต้องการ การ์ดนี้สามารถใช้สำหรับแสดงข้อมูลหรือเนื้อหาต่างๆ
อ่านเพิ่มเติม