INNER CODE UNIT · JavaScript

CmEditor

vijos/vj4 · vj4/ui/components/cmeditor/index.js:4

export default class CmEditor extends DOMAttachedObject {
  static DOMAttachKey = 'vjCmEditorInstance';

  constructor($dom, options = {}) {
    super($dom);
    this.editor = null;
    this.options = options;
    this.init();
  }

  async init() {
    const { default: VjCmEditor } = await import('./vjcmeditor');

    const hasFocus = this.$dom.is(':focus');
    const srcHeight = this.$dom.outerHeight();

    this.editor = new VjCmEditor({
      ...this.options,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…