# core/editor/utils/rootacceptsblocks

module

<a id="functions">

## Functions

<a id="function-rootAcceptsBlocks">

### `rootAcceptsBlocks( editor, rootName ) → boolean` _(internal)_

Returns whether the model root with the given name accepts `$block` children 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.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/utils/rootacceptsblocks.ts#L20)

#### Parameters

* `editor: Editor`
* `rootName: string`

#### Returns

* `boolean`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
