MCPcopy
hub / github.com/tinymce/tinymce / isLineBreakNode

Function isLineBreakNode

modules/tinymce/src/core/main/ts/html/ParserUtils.ts:36–37  ·  view source on GitHub ↗
(node: AstNode | null | undefined, isBlock: (node: AstNode) => boolean)

Source from the content-addressed store, hash-verified

34 node.isEmpty(nonEmptyElements, whitespaceElements, (node) => isPadded(schema, node));
35
36const isLineBreakNode = (node: AstNode | null | undefined, isBlock: (node: AstNode) => boolean): boolean =>
37 Type.isNonNullable(node) && (isBlock(node) || node.name === 'br');
38
39const findClosestEditingHost = (scope: AstNode): Optional<AstNode> => {
40 let editableNode;

Callers 1

preprocessFunction · 0.90

Calls 1

isBlockFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…