Protected_Protected Optional_Protected_Protected Optional_Protected_Protected_ReadonlycanReadonlycatalogueReadonlyhasReadonlylayoutReadonlylayoutReadonlylibraryProtected_The block types to filter by.
The allowed element type uniques.
Protected_Protected_Protected_Inserts an existing Library element as an external-content reference.
The key of the element to reference.
OptionaloriginData: UmbBlockWorkspaceOriginData
Where the block was requested from, used to position it.
Protected_Protected_Protected_Keeps hasLibraryElements in sync with whether any of the given block types
is also allowed at the library root — the same rule the block catalogue modal
uses to offer the Library tab.
The block types the editor offers.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsObserve the layout entry with the given layout key. Unlike a content key, a layout key identifies one specific placement.
The layout key of the entry.
The layout entry, or undefined if there is none with that key.
Callback method called with the resolved context instance or undefined.
Reference to the created Context Consumer Controller instance
Subscribe to a context. The callback fires when the context resolves, again if the context is replaced, and can also be invoked with undefined if the context is unprovided or the host disconnects. Use this whenever a controller or element needs the context at setup time — both for ongoing observation and for reading values immediately on resolve. This is the default choice; prefer it over getContext unless the context is only needed inside a later user action.
OptionalpartialLayoutEntry: Omit<UmbBlockRteLayoutModel, "key" | "contentKey">OptionaloriginData: UmbBlockRteWorkspaceOriginDataDelete a block by requesting its removal through the pending deletion mechanism. This enables undo support by removing the HTML element first via Tiptap, which triggers _filterUnusedBlocks to store block data before removal.
The layout key of the block to delete.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().
Get the layout entry with the given layout key. Unlike a content key, a layout key identifies one specific placement.
The layout key of the entry.
The layout entry, or undefined if there is none with that key.
Optionaloptions: UmbClassGetContextOptions
Options for resolving the context once, including timeout-related behavior such as preventTimeout.
A Promise resolving to the Context API instance when available, or undefined when applicable.
Retrieve a context once as a Promise. Use this only when the context is first needed inside a user action or event handler that runs later (for example a button click, a property action, or an entity action execute()). For setup-time access — including a single immediate read — use consumeContext instead so the controller lifecycle handles resolution and cleanup. The returned Promise may reject if the context is not found before the default timeout; callers should handle rejection and/or pass preventTimeout in the options when waiting longer is expected.
Get the first layout entry that references the given content key.
A content key can be referenced by more than one layout entry, so this does not identify a specific entry; use getByKey for that.
The content key to look up.
The first matching layout entry.
Observe the first layout entry that references the given content key.
A content key can be referenced by more than one layout entry, so this does not identify a specific entry; use byKey for that.
The content key to look up.
The first matching layout entry.
An Observable to observe from.
Optionalcallback: ObserverCallback<UmbObserverValueType<ObservableType>>
Callback method called when data is changed.
OptionalcontrollerAlias: UmbControllerAlias | null
Define an explicit controller alias. If not defined then one will be generated based on the callback function. If null is parsed no controller alias will be given.
Reference to the created Observer Controller instance.
The API instance to be exposed.
Reference to the created Context Provider Controller instance
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Optionaloptions: boolean | EventListenerOptions
Returns the element type uniques allowed at the library root that overlap with the given block types — used to filter the library picker in the block catalogue modal.