Skip to content

Add rich text editor API and example - #747

Open
geom3trik wants to merge 4 commits into
linebender:mainfrom
geom3trik:main
Open

Add rich text editor API and example#747
geom3trik wants to merge 4 commits into
linebender:mainfrom
geom3trik:main

Conversation

@geom3trik

Copy link
Copy Markdown

LLM Contributions: LLM used to generate the example (based on previous editor example) and some parts of the RichEditor (thoroughly checked by comparison with PlainEditor).

Adds a new RichEditor, the rich text counterpart to PlainEditor, and an example demonstrating its use (based on the editor example).

Changelog

Added

  • New RichEditor and RichEditorDriver.

Introduce a new `RichEditor` implementation in `parley::editing` that supports per-range style spans, IME composition handling, selection/cursor movement, layout refresh, and optional AccessKit integration. Wire `parley` to depend on `attributed_text`, update feature flags, and expose small editor utilities (`Generation` inner value and `SplitString::new`) needed by the new API.

Also add a new `examples/rich_editor` app showcasing styled spans, editing interactions, rendering, and accessibility updates, and register it in the workspace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant