Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
francismengMS committed Jun 21, 2024
1 parent 3e22f10 commit 97e82d8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const SelectionSelector = '.' + SelectionClassName;
export const setContentModel: SetContentModel = (core, model, option, onNodeCreated) => {
const editorContext = core.api.createEditorContext(core, true /*saveIndex*/);
const currentWindow = core.logicalRoot.ownerDocument.defaultView;
if (currentWindow && isWindowWithHighlight(currentWindow))
if (currentWindow && isWindowWithHighlight(currentWindow)) {
if (option?.shouldMaintainSelection) {
editorContext.selectionClassName = SelectionClassName;
core.api.setEditorStyle(core, SelectionClassName, 'background-color: #ddd!important', [
Expand All @@ -28,6 +28,7 @@ export const setContentModel: SetContentModel = (core, model, option, onNodeCrea
} else {
core.api.setEditorStyle(core, SelectionClassName, null /*rule*/);
}
}

const modelToDomContext = option
? createModelToDomContext(
Expand Down

0 comments on commit 97e82d8

Please sign in to comment.