richtext package
Functions
|
Function |
Description |
|---|---|
|
Normalizes an optional serialized list item ordinal while preserving invalid explicit values. | |
|
Normalizes an optional serialized list start while preserving invalid explicit values. | |
|
Convert headerState into relevant tag. Missing or 0 means a body cell ( | |
|
Convert format bitflag for holding text formats into relevant tags. Missing format is treated as | |
|
True for attribute keys the Uniform web SDKs strip at render time: inline event handlers ( | |
|
Converts a link parameter value into a React-compatible anchor prop bag. Delegates to | |
|
Derives the href string from a link parameter value. | |
|
Converts a link parameter value into a plain HTML attribute bag suitable for an | |
|
Returns a clone with SDK-compatible Lexical default-valued properties removed. The input is not mutated, so stored or immer-frozen values are safe to pass directly. | |
|
Returns a clone of the rich text value with omitted Lexical defaults restored. The input is not mutated, so stored or immer-frozen values are safe to pass directly. | |
|
Render an array of RichTextNodes to a string based on a particular context. This will often be called from within a NodeRenderer using the | |
|
Render an array of RichTextNodes to a string based on a particular context. This will often be called from within a NodeRenderer using the | |
|
Render a node and its children to HTML This could be the root node or a nested node | |
|
Render a node and its children to text This could be the root node or a nested node | |
|
Normalize a stored entry for rendering — fills in a default label. | |
Interfaces
|
Interface |
Description |
|---|---|
|
One entry in the link-attributes config list. | |
|
Serialized Lexical node as stored on Uniform rich text parameters. Stored payloads may omit default-valued properties. Custom renderers must treat a missing | |
Variables
|
Variable |
Description |
|---|---|
|
When a custom renderer has not been provided we check to see if there is a renderer for the type within the map above. These are for any node types which include extra logic. Some node types like quote just map directly to a HTML tag (ie blockquote). For those there is a simple | |
|
When a custom renderer has not been provided we check to see if there is a renderer for the type within the map above. These are for any node types which include extra logic. | |
Type Aliases
|
Type Alias |
Description |
|---|---|