MCPcopy
hub / github.com/tinymce/tinymce / getRootBlockName

Function getRootBlockName

modules/tinymce/src/core/main/ts/api/html/DomParser.ts:285–294  ·  view source on GitHub ↗
(settings: DomParserSettings, args: ParserArgs)

Source from the content-addressed store, hash-verified

283};
284
285const getRootBlockName = (settings: DomParserSettings, args: ParserArgs) => {
286 const name = args.forced_root_block ?? settings.forced_root_block;
287 if (name === false) {
288 return '';
289 } else if (name === true) {
290 return 'p';
291 } else {
292 return name;
293 }
294};
295
296const xhtmlAttribte = ' xmlns="http://www.w3.org/1999/xhtml"';
297

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…