Skip to content

Text injection at position #73

@VincenzoManto

Description

@VincenzoManto

Problem
Injecting text appears to be impossible as there isn't a clear reference of cursor position neither in the markdown nor in the overall HTML text, thus it's not possible to add text (formatted or not) where the user is positioned programmatically.

Solution
Either getting a precise cursor position in the markdown (related to caret position in HTML) or add a method to inject text where the user is positioned.

Use Case
Whenever we want to edit the paste behavior or injecting text in position (such as suggestions or autocomplete), it would be important.

Thanks guys for the great job!

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions