MCPcopy Create free account
hub / github.com/cweijan/vscode-office / isMathBlockEmpty

Function isMathBlockEmpty

vditor/src/ts/codeBlock/codeMirrorManager.ts:140–142  ·  view source on GitHub ↗
(blockElement: HTMLElement)

Source from the content-addressed store, hash-verified

138};
139
140export const isMathBlockEmpty = (blockElement: HTMLElement) => {
141 return getMathBlockText(blockElement).trim() === "";
142};
143
144/** 空数学块默认 CodeMirror;非空且未编辑时保持预览态 */
145export const syncMathBlockDisplayMode = (vditor: IVditor, blockElement: HTMLElement, focus = false) => {

Callers 6

bindEventMethod · 0.90
scrollToBlockFunction · 0.90
syncMathBlockDisplayModeFunction · 0.85
cmDomEventHandlersFunction · 0.85
applyFunction · 0.85

Calls 1

getMathBlockTextFunction · 0.85

Tested by

no test coverage detected