Versions in this module Expand all Collapse all v0 v0.4.0 Nov 28, 2026 v0.3.4 Nov 26, 2026 v0.3.3 Nov 25, 2026 v0.3.2 Nov 25, 2026 v0.3.1 Nov 25, 2026 v0.3.0 Nov 23, 2026 v0.2.0 Nov 19, 2026 v0.1.0 Nov 16, 2026 Changes in this version + type Command struct + type Editor struct + func (e *Editor) Blur() + func (e *Editor) Can(c *Command) (bool, error) + func (e *Editor) Characters(nodes bool) int + func (e *Editor) Close() error + func (e *Editor) CoordsAtPos(pos int) (RichRect, bool, error) + func (e *Editor) DocJSON() map[string]any + func (e *Editor) DragBlock(pos int, x, y float64) (bool, error) + func (e *Editor) DragTo(x, y float64) + func (e *Editor) Editable() bool + func (e *Editor) EndDrag() bool + func (e *Editor) Focus() + func (e *Editor) GetAttributes(name string) map[string]any + func (e *Editor) HTML() string + func (e *Editor) IsActive(name string, attrs map[string]any) bool + func (e *Editor) IsFocused() bool + func (e *Editor) Markdown() string + func (e *Editor) On(event string, handler func(RichEditorEvent)) func() + func (e *Editor) PageCoordsAtPos(pos int) (RichRect, bool, error) + func (e *Editor) PosAtCoords(x, y float64) (int, bool) + func (e *Editor) PosAtPageCoords(x, y float64) (int, bool) + func (e *Editor) RedoDepth() int + func (e *Editor) Revision() int + func (e *Editor) Run(c *Command) (bool, error) + func (e *Editor) Selection() RichSelection + func (e *Editor) SelectionRect() (RichRect, bool) + func (e *Editor) SetContent(content any) error + func (e *Editor) SetEditable(on bool) + func (e *Editor) SetHTML(html string) error + func (e *Editor) Size() int + func (e *Editor) Suggestion(key string) (RichSuggestion, bool) + func (e *Editor) Text() string + func (e *Editor) UndoDepth() int + func (e *Editor) Words() int + type Extension struct + func CharacterCount(options map[string]any) *Extension + func Mention(options map[string]any) *Extension + func StarterKit(options map[string]any) *Extension + func TableKit(options map[string]any) *Extension + func (x *Extension) Configure(options map[string]any) *Extension + func (x *Extension) Name() string + func (x *Extension) Options() map[string]any + type RichClickEvent struct + Clicks int + Mod bool + Pos int + type RichDecoration struct + Class string + From int + Key string + Node bool + Side int + To int + Widget func() core.Node + type RichEditorEvent struct + DocChanged bool + Origin string + Revision int + type RichEditorOptions struct + Editable *bool + Extensions []*Extension + HTML string + JSON map[string]any + Markdown string + OpenLink func(href string) + Plugins []RichPluginSpec + type RichExtensionSpec struct + AddCommands func(options map[string]any) map[string]func(args map[string]any) *Command + AddGlobalAttributes func(options map[string]any) []RichGlobalAttributes + AddInputRules func(options map[string]any) []RichInputRule + AddKeyboardShortcuts func(options map[string]any) map[string]*Command + AddOptions func() map[string]any + AddProseMirrorPlugins func(options map[string]any) []RichPluginSpec + Mark *RichMarkSpec + Name string + Node *RichNodeSpec + Priority int + type RichGlobalAttributes struct + Attributes map[string]map[string]any + Types []string + type RichInputRule struct + Attrs map[string]any + Find *regexp.Regexp + Name string + Replace string + Type string + type RichMarkSpec struct + Attrs map[string]map[string]any + Excludes string + Extra map[string]any + Group string + Inclusive *bool + type RichNodeSpec struct + Atom bool + Attrs map[string]map[string]any + Code bool + Content string + Defining bool + Extra map[string]any + Group string + Inline bool + Isolating bool + LeafText func(attrs map[string]any) string + Marks string + RenderText func(attrs map[string]any) string + Selectable *bool + Whitespace string + type RichPasteEvent struct + Text string + type RichPluginSpec struct + AppendTransaction func(editor *Editor, tr RichTransactionInfo) *Command + Decorations func(editor *Editor) []RichDecoration + FilterTransaction func(editor *Editor, tr RichTransactionInfo) bool + HandleClick func(editor *Editor, event RichClickEvent) bool + HandleKeyDown func(editor *Editor, key string) bool + HandlePaste func(editor *Editor, event RichPasteEvent) bool + HandleTextInput func(editor *Editor, event RichTextInputEvent) bool + Key string + Keys map[string]*Command + type RichRect struct + Height float64 + Width float64 + X float64 + Y float64 + type RichSelection struct + Anchor int + Empty bool + From int + Head int + To int + Type string + type RichSuggestion struct + Active bool + From int + KeyCount int + LastKey string + Query string + To int + type RichTextInputEvent struct + From int + Text string + To int + type RichTransactionInfo struct + DocChanged bool + Origin string + SelectionSet bool + Steps int + type View struct + AutoFocus bool + BubbleMenu func() core.Node + BubbleMenuOffset core.Points + BubbleMenuPlacement core.Placement + Class string + Classes richeditor.Classes + Editor *Editor + Label string + Markdown string + OnBlur func() + OnChange func(revision int) + OnFocus func() + OnLayout func(core.Bounds) + OnSelectionChange func(selection RichSelection) + Placeholder string + Style core.Style + Styles richeditor.Styles + TestID string + Tooltip core.Node + func (v View) Base() richeditor.View + func (v View) Render(*core.Scope) core.Node