Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@tiptap/react.ts

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Latest
import * as netzo from "https://deno.land/x/netzo@0.5.119/deps/@tiptap/react.ts";

Classes

The Extension class is the base class for all extensions.

The Mark class is used to create custom mark extensions.

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.

Functions

Optionally calls value as a function. Otherwise it is returned directly.

Returns a new Transform based on all steps of the passed transactions.

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 findChildren but searches only within a range.

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 addAttribute and addGlobalAttribute.

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 toText in a Prosemirror schema

This function merges extension attributes into parserule attributes (attrs or getAttrs). Cancels when getAttrs returned false.

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 ^, so that the pattern can only occur at the start of a textblock.

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 ^, so that the pattern can only occur at the start of a textblock.