TanchoToplineCargo/public/assets/js/pages/form-editor.init.js

1 line
1.0 KiB
JavaScript
Raw Normal View History

2024-05-05 04:47:49 +00:00
var ckClassicEditor=document.querySelectorAll(".ckeditor-classic"),snowEditor=(ckClassicEditor&&Array.from(ckClassicEditor).forEach(function(){ClassicEditor.create(document.querySelector(".ckeditor-classic")).then(function(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={};1==e.classList.contains("snow-editor")&&(o.theme="snow",o.modules={toolbar:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{script:"super"},{script:"sub"}],[{header:[!1,1,2,3,4,5,6]},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["link","image","video"],["clean"]]}),new Quill(e,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)});