Module
richtext
github.com/riducms/ridu/plugins/richtext — A paired, versioned Lexical field with authoring for portable content, references, uploads, and blocks.
Functions 5
richtext.New()Register the backend half of the paired rich-text plugin.
richtext.Field()Define rich text with the default feature set.
richtext.DefaultConfig()Return a defensive copy of the recommended feature configuration.
richtext.FieldWithConfig()Define rich text with explicit features.
richtext.RenderHTML()Render portable nodes to escaped HTML, delegating custom node types to caller-owned renderers.
Types 7
constant richtext.KeyThe stable backend and plugin-field key.
constant richtext.DocumentVersionThe stored rich-text document format version.
constant richtext.AdminPluginPairingVersionThe required compatibility version between Go and Svelte packages.
type richtext.ConfigEnabled features and optional allowlists for relationship and upload nodes.
type richtext.FeatureOne optional authoring and validation capability.
type richtext.Feature constantsThe supported optional rich-text features.
type richtext.DocumentThe exact generated Go value type for a versioned serialized Lexical document.
Constants 7
constant richtext.FeatureBlocksPublic constant FeatureBlocks from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureCodePublic constant FeatureCode from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureHorizontalRulePublic constant FeatureHorizontalRule from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureLinksPublic constant FeatureLinks from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureListsPublic constant FeatureLists from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureRelationshipsPublic constant FeatureRelationships from github.com/riducms/ridu/plugins/richtext.
constant richtext.FeatureUploadsPublic constant FeatureUploads from github.com/riducms/ridu/plugins/richtext.