devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
25 lines (24 loc) • 795 B
JavaScript
/**
* DevExtreme (esm/__internal/ui/html_editor/themes/m_base.js)
* Version: 25.1.3
* Build date: Wed Jun 25 2025
*
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import Quill from "devextreme-quill";
let BaseTheme;
if (Quill) {
const Theme = Quill.import("core/theme");
BaseTheme = class extends Theme {
constructor(quill, options) {
super(quill, options);
this.quill.root.classList.add("dx-htmleditor-content");
this.quill.root.setAttribute("role", "textbox");
this.quill.root.setAttribute("aria-label", "Editor content")
}
}
} else {
BaseTheme = {}
}
export default BaseTheme;