Skip to content

Commit

Permalink
🎨 #10805
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Mar 31, 2024
1 parent 8853b9a commit cfe93a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/protyle/wysiwyg/enter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ import {isIPad, setStorageVal} from "../util/compatibility";
import {mathRender} from "../render/mathRender";
import {isMobile} from "../../util/functions";
import {processRender} from "../util/processCode";
import {hasClosestByClassName} from "../util/hasClosest";

export const enter = (blockElement: HTMLElement, range: Range, protyle: IProtyle) => {
if (hasClosestByClassName(blockElement, "protyle-wysiwyg__embed")) {
return;
}
const disableElement = isNotEditBlock(blockElement);
if (!disableElement && blockElement.classList.contains("protyle-wysiwyg--select")) {
setLastNodeRange(getContenteditableElement(blockElement), range, false);
Expand Down

0 comments on commit cfe93a0

Please sign in to comment.