import * as netzo from "https://deno.land/x/netzo@0.5.107/deps/@tiptap/react.ts";
Classes
The Extension class is the base class for all extensions. | |
c Mark | The Mark class is used to create custom mark extensions. |
c Node | The Node class is used to create custom node extensions. |
Node views are used to customize the rendered DOM structure of a node. | |
Paste rules are used to react to pasted content. | |
Variables
Finds the first node of a given type or name in the current selection. | |
Returns the text content of a resolved prosemirror position | |
Functions
Optionally calls | |
Returns a new | |
Takes a Transaction & Editor State and turns it into a chainable state object | |
Create a new Prosemirror document node from content. | |
Takes a JSON or HTML content and creates a Prosemirror node or fragment from it. | |
Gets the default block type at a given match | |
Remove a property or an array of properties from an object | |
Find children inside a Prosemirror node that match a predicate. | |
Same as | |
Finds the closest parent node to the current selection that matches a predicate. | |
Finds the closest parent node to a resolved position that matches a predicate. | |
Generate HTML from a JSONContent | |
Generate JSONContent from HTML | |
Generate raw text from a JSONContent | |
Get node or mark attributes by type or name on the current editor state | |
Get a list of all extension attributes defined in | |
Returns a list of changed ranges based on the first and last state of all steps. | |
Returns a field from an extension | |
Creates a new Prosemirror schema based on the given extensions. | |
Tries to get a node or mark type by its name. | |
Get the type of a schema item by its name. | |
Return attributes of an extension that should be splitted by keepOnSplit flag | |
Gets the text of a Prosemirror node | |
Gets the text between two positions in a Prosemirror node and serializes it using the given text serializers and block separator (see getText) | |
Find text serializers | |
This function merges extension attributes into parserule attributes ( | |
Create an input rules plugin. When enabled, it will cause text input that matches any of the given rules to trigger the rule’s action. | |
Build an input rule that adds a mark when the matched text is typed into it. | |
Build an paste rule that adds a mark when the matched text is pasted into it. | |
Build an input rule that adds a node when the matched text is typed into it. | |
Build an paste rule that adds a node when the matched text is pasted into it. | |
Check if object1 includes object2 | |
Create an paste rules plugin. When enabled, it will cause pasted text that matches any of the given rules to trigger the rule’s action. | |
Removes duplicated values within an array. Supports numbers, strings and objects. | |
Build an input rule that changes the type of a textblock when the
matched text is typed into it. When using a regular expresion you’ll
probably want the regexp to start with | |
Build an input rule that replaces text when the matched text is typed into it. | |
Build an paste rule that replaces text when the matched text is pasted into it. | |
Build an input rule for automatically wrapping a textblock when a
given string is typed. When using a regular expresion you’ll
probably want the regexp to start with |