ExtensionManager
class ExtensionManager { }
private setupExtensions;
get attributes(): import("https://esm.sh/v135/@tiptap/core@2.4.0/X-ZS9yZWFjdCxyZWFjdC1kb20scmVhY3QvanN4LXJ1bnRpbWU/dist/packages/core/src/index.d.ts").ExtensionAttribute[];
editor: Editor;
extensions: Extensions;
get nodeViews(): any;
schema: Schema;
splittableMarks: string[];
§Properties
§
setupExtensions
[src]Go through all extensions, create extension storages & setup marks & bind editor event listener.
§
commands: RawCommands readonly
[src]Get all commands from the extensions.
§
attributes: import("https://esm.sh/v135/@tiptap/core@2.4.0/X-ZS9yZWFjdCxyZWFjdC1kb20scmVhY3QvanN4LXJ1bnRpbWU/dist/packages/core/src/index.d.ts").ExtensionAttribute[] readonly
[src]Get all attributes from the extensions.
§
extensions: Extensions
[src]§Static Methods
§
flatten(extensions: Extensions): Extensions
[src]Create a flattened array of extensions by traversing the addExtensions
field.
@param extensions
An array of Tiptap extensions
@return
A flattened array of Tiptap extensions
§
resolve(extensions: Extensions): Extensions
[src]Returns a flattened and sorted extension list while also checking for duplicated extensions and warns the user.
@param extensions
An array of Tiptap extensions
@return
An flattened and sorted array of Tiptap extensions
§
sort(extensions: Extensions): Extensions
[src]Sort extensions by priority.
@param extensions
An array of Tiptap extensions
@return
A sorted array of Tiptap extensions by priority