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

insertContent command should retain marks on the current selection when a text string is passed #2406

Closed
1 task
SamDuvall opened this issue Jan 19, 2022 · 1 comment
Labels
Type: Feature The issue or pullrequest is a new feature

Comments

@SamDuvall
Copy link

What problem are you facing?

I was expecting the insertContent command below to insert the text like insertText in ProseMirror where marks on the current selection are preserved.

editor.commands.insertContent('Example Text')

What’s the solution you would like to see?

Perhaps we should modify insertContent command to retain marks on the current selection or add a new command insertText that maps to ProseMirror?

What alternatives did you consider?

I'll just create my own insertText command in my project for now.

Anything to add? (optional)

No response

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@SamDuvall SamDuvall added the Type: Feature The issue or pullrequest is a new feature label Jan 19, 2022
@philippkuehn
Copy link
Contributor

Ah, should now work more as expected :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature The issue or pullrequest is a new feature
Projects
None yet
Development

No branches or pull requests

2 participants