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

Function splitToFormatRoot

modules/tinymce/src/core/main/ts/fmt/RemoveFormat.ts:455–458  ·  view source on GitHub ↗
(container: Node)

Source from the content-addressed store, hash-verified

453 const selection = ed.selection;
454
455 const splitToFormatRoot = (container: Node) => {
456 const formatRoot = findFormatRoot(ed, container, name, vars, similar);
457 return wrapAndSplit(ed, formatList, formatRoot, container, container, true, format, vars);
458 };
459
460 // Make sure to only check for bookmarks created here (eg _start or _end)
461 // as there maybe nested bookmarks

Callers 1

removeRngStyleFunction · 0.85

Calls 2

findFormatRootFunction · 0.85
wrapAndSplitFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…