devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
14 lines (13 loc) • 422 B
JavaScript
import { DomUtils } from '@devexpress/utils/lib/utils/dom';
export class RulerShadow {
element;
constructor(templateElement) {
this.element = templateElement.cloneNode(true);
this.element.style.opacity = '0.5';
this.element.style.display = '';
templateElement.parentNode.appendChild(this.element);
}
dispose() {
DomUtils.hideNode(this.element);
}
}