let editor; var ckClassicEditor = document.querySelectorAll(".ckeditor-classic"), snowEditor = (ckClassicEditor && Array.from(ckClassicEditor).forEach(function () { ClassicEditor.create(document.querySelector(".ckeditor-classic"), { toolbar: { items: [ 'heading', '|', 'font family', 'fontsize', '|', 'alignment', '|', 'fontColor', 'fontBackgroundColor', '|', 'bold', 'italic', 'strikethrough', 'underline', 'subscript', 'superscript', '|', 'link', '|', 'outdent', 'indent', '|', 'bulletedList', 'numberedList', 'todoList', '|', 'code', 'codeBlock', '|', 'undo', 'redo' ], shouldNotGroupWhenFull: true } }).then(function (e) { editor = e e.ui.view.editable.element.style.height = "200px" }).catch(function (e) { console.error(e) }) }), document.querySelectorAll(".snow-editor")), bubbleEditor = (snowEditor && Array.from(snowEditor).forEach(function (e) { var o = {}; }), document.querySelectorAll(".bubble-editor")); bubbleEditor && Array.from(bubbleEditor).forEach(function (e) { var o = {}; 1 == e.classList.contains("bubble-editor") && (o.theme = "bubble"), new Quill(e, o) });