core/editor/utils/rootacceptsblocks
module
Functions
rootAcceptsBlocks( editor, rootName ) → booleaninternalmodule:core/editor/utils/rootacceptsblocks~rootAcceptsBlocksReturns whether the model root with the given name accepts
$blockchildren according to the editor's schema.Call this once the plugin initialization phase is finished — typically during UI init or right after creating a new editable — so the schema reflects any plugin-registered root types or additional content rules.
Parameters
editor : EditorrootName : string
Returns
boolean