سلام وقت بخیر
این پلاگین ckeditor جدیدا LICENSE_KEY میخواد و برای من toolbar دکمه هاش غیرفعالن.
خواستم بپرسم این لایسنس به چه صورته؟
سلام،
licenseKey: "", رو خالی بذار یا مقدار gpl: (نمونه)
<div class="editor-container"> <textarea id="editor"></textarea> </div> <script> document.addEventListener("DOMContentLoaded", function () { const editorConfig = { language: "fa", licenseKey: "", // برای GPL نیازی به لایسنس نیست toolbar: [ "heading", "|", "bold", "italic", "link", "bulletedList", "numberedList", "blockQuote", "insertTable", "undo", "redo", ], heading: { options: [ { model: "paragraph", title: "پاراگراف", class: "ck-heading_paragraph", }, { model: "heading1", view: "h1", title: "سرتیتر 1", class: "ck-heading_heading1", }, { model: "heading2", view: "h2", title: "سرتیتر 2", class: "ck-heading_heading2", }, ], }, }; ClassicEditor.create( document.querySelector("#editor"), editorConfig ) .then((editor) => { console.log("Editor initialized", editor); }) .catch((error) => { console.error("Error:", error); }); }); </script>