MCPcopy Index your code
hub / github.com/tinymce/tinymce / isAnnotation

Function isAnnotation

modules/tinymce/src/core/main/ts/annotate/Identification.ts:40–40  ·  view source on GitHub ↗
(elem: any)

Source from the content-addressed store, hash-verified

38};
39
40const isAnnotation = (elem: any): boolean => SugarNode.isElement(elem) && Class.has(elem, Markings.annotation());
41
42const isBogusElement = (elem: SugarElement<Node>, root: SugarElement<Node>) =>
43 Attribute.has(elem, 'data-mce-bogus') || SelectorExists.ancestor(elem, '[data-mce-bogus="all"]', isRoot(root));

Callers 1

contextFunction · 0.90

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…