Я использую CK Editor 5. Как я могу использовать maxlength в редакторе, чтобы запретить пользователю вводить символы не более 500 без HTML-тегов
ClassicEditor
.create(document.querySelector('#Sample'), {
toolbar: ["undo", "redo", "bold", "italic", "blockQuote", "ckfinder", "imageTextAlternative", "imageUpload", "heading", "imageStyle:full", "imageStyle:side", "link", "numberedList", "bulletedList", "mediaEmbed", "insertTable", "tableColumn", "tableRow", "mergeTableCells"],
ckfinder: {
// Upload the images to the server using the CKFinder QuickUpload command.
uploadUrl: '',
// Define the CKFinder configuration (if necessary).
}
})
.then(editor => {
window.editor = editor;
});
})
.catch(err => {
// console.error(err.stack);
});