Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SuperEditor][SuperReader][SuperTextField] - Inline image and widget support #2439

Open
matthew-carroll opened this issue Dec 4, 2024 · 0 comments

Comments

@matthew-carroll
Copy link
Contributor

matthew-carroll commented Dec 4, 2024

This is a meta ticket for the goal of inserting, selecting, and deleting small images and widgets within text in SuperEditor, SuperReader, and SuperTextField.

Small images and widgets means images and widgets whose size is comparable to the text around them.

Anti-goal: This work does NOT include text within widgets within text, e.g., inline code snippets. This work does NOT include document-level line flowing, e.g., paragraphs flowing around images.

Steps:

  1. Add the concept of single character placeholders to AttributedText: [AttributedText] - Add single-character placeholders #2440
  2. Adjust SuperText to produce InlineSpans that now include WidgetSpans, which inject the appropriate widgets for the placeholders in AttributedText: [SuperText] - Render inline widgets #2441
  3. SuperEditor: Adjust selection rendering, content insertion, and content deletion behaviors to work with images: [SuperEditor][SuperReader] - Add support for inline images and gifs #2442
  4. SuperTextField: Adjust selection rendering, content insertion, and content deletion behaviors to work with images: [SuperTextField] - Bring inline widgets to SuperTextField #2507
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

No branches or pull requests

1 participant