Skip to content

Using placeholders within text #775

Description

@m-doescode

Hi,

As with many other issues opened, I would like to implement image editing into my application. Of course, RichTextEditor does not support this because of a limitation of Compose. So I was wondering if I can use a workaround.

Is it possible to insert a placeholder block within the document that:

  • Takes up some designated amount of space/height
  • Cannot be edited by the user (but the user can insert text before/after it, just not within it)
  • Completely blank
  • Has an id, and its position on the screen can be queried
  • Can be deleted/moved/resized through code

If so, I could maybe overlay the image on top of where that placeholder is supposed to appear. Is there any way to do this using your library?

Thank you so much for your work, and your response in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions