You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/js/panel/editor-handle.js

16 lines
524 B
JavaScript

document.addEventListener('readystatechange',function () {
let dirx = 'ltr';
document.querySelectorAll('.ckeditorx')?.forEach(function (el) {
CKEDITOR.replace(el.getAttribute('name'), {
filebrowserUploadUrl: xupload,
filebrowserUploadMethod: 'form',
contentsLangDirection: dirx,
skin: 'moono-dark',
});
// WIP: need font and color like website
CKEDITOR.addCss('.cke_editable { background-color: #212529; color: white }');
});
});