MCPcopy
hub / github.com/tinymce/tinymce / isBlock

Function isBlock

modules/tinymce/src/core/main/ts/api/html/Schema.ts:686–686  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

684 };
685
686 const isBlock = (name: string): boolean => Obj.has(getBlockElements(), name);
687
688 // Check if name starts with # to detect non-element node names like #text and #comment
689 const isInline = (name: string): boolean => !Strings.startsWith(name, '#') && isValid(name) && !isBlock(name);

Callers 4

addCustomElementFunction · 0.70
isInlineFunction · 0.70
paddEmptyNodeFunction · 0.50
isLineBreakNodeFunction · 0.50

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…