diff --git a/src/editor/view/EditorView.ts b/src/editor/view/EditorView.ts index 0d7e05d8d..b8482a2b5 100644 --- a/src/editor/view/EditorView.ts +++ b/src/editor/view/EditorView.ts @@ -27,6 +27,9 @@ export default class EditorView extends View { const { Panels, Canvas } = model.attributes; const { config, modules } = model; const pfx = config.stylePrefix; + const classNames = [`${pfx}editor`]; + !config.customUI && classNames.push(`${pfx}one-bg ${pfx}two-color`); + // @ts-ignore const contEl = $(config.el || `body ${config.container}`); config.cssIcons && appendStyles(config.cssIcons, { unique: true, prepand: true }); @@ -46,7 +49,7 @@ export default class EditorView extends View { shallowCanvasEl.style.display = 'none'; $el.append(shallowCanvasEl); - $el.attr('class', `${pfx}editor ${pfx}one-bg ${pfx}two-color`); + $el.attr('class', classNames.join(' ')); // @ts-ignore contEl.addClass(`${pfx}editor-cont`).empty().append($el); modules.forEach(md => md.postRender && md.postRender(this));