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

Content is being prepended instead of replaced when pasting clipboard content #141

Closed
cedrvanh opened this issue Sep 25, 2024 · 3 comments
Closed

Comments

@cedrvanh
Copy link

cedrvanh commented Sep 25, 2024

Hi,

Since upgrading to version 7.5, I've encountered a minor issue when replacing content in the editor field.

Steps to reproduce:

  1. Set force-paste-as-plain-text => true
  2. Select all (CMD+A) or some content in the editor
  3. Paste new content from your clipboard into the editor. This will prepend the clipboard content inside the field

Expected behavior: The selected text should be replaced with the clipboard content, as is the case when force-paste-as-plain-text is set to false.

image

Also, thank you for your quick response in addressing the previous issue!

@cedrvanh cedrvanh changed the title Content is being appended instead of replaced when using the select all shortcut Content is being prepended instead of replaced when pasting clipboard content Sep 25, 2024
mostafaznv added a commit that referenced this issue Sep 25, 2024
fix: consider the selected range when pasting content with plain paste enabled #141
@mostafaznv
Copy link
Owner

Hi again,
Thanks for the report. I’ve released a fix.
Please check it and let me know the result.

7.5.1

@cedrvanh
Copy link
Author

@mostafaznv This seems to work great now, thank you for your effort!

@mostafaznv
Copy link
Owner

You’re welcome.
I’m going to close this issue. Feel free to open another one if anything unexpected arises.

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

2 participants