This commit is contained in:
Vanessa 2022-08-19 14:39:19 +08:00
parent fa22ce9015
commit ceee12f10c
12 changed files with 69 additions and 36 deletions

View file

@ -30,6 +30,7 @@ import {openFileById} from "../../editor/util";
/// #endif
import {openMobileFileById} from "../../mobile/editor";
import {getIconByType} from "../../editor/getIcon";
import {processRender} from "../util/processCode";
export class Hint {
public timeId: number;
@ -596,6 +597,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
}
if (value === "<div>" || value === "$$" || (value.indexOf("```") > -1 && value.length > 3)) {
protyle.toolbar.showRender(protyle, nodeElement);
processRender(nodeElement);
} else if (value.startsWith("```")) {
highlightRender(nodeElement);
} else if (value.startsWith("<iframe") || value.startsWith("<video") || value.startsWith("<audio")) {