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

Editor doesn't recognize image as change if uploaded at line end #1479

Open
last-resort opened this issue Nov 12, 2024 · 0 comments
Open

Editor doesn't recognize image as change if uploaded at line end #1479

last-resort opened this issue Nov 12, 2024 · 0 comments
Labels
Milestone

Comments

@last-resort
Copy link

last-resort commented Nov 12, 2024

Describe the bug
If you upload a picture at the end of a line it isn't recognized as a change (save button is still disabled).
It doesn't matter if you use the toolbar button, drag and drop or copy paste, the result is always the same.
If you upload it between some text content everything works as expected.

To Reproduce
Steps to reproduce the behavior:

  1. Go to http://suneditor.com/sample/index.html
  2. Place the cursor right behind the dot in "Pasting from Microsoft Word and Excel."
  3. The save button should be still disabled
  4. Upload an image by clicking the image button in the toolbar or paste/drag and drop to this position
  5. No change is detected, the save button is still disabled

Expected behavior
The change should be recognized and you should be able to save the editor content after uploading the image.

Desktop (please complete the following information):

  • OS: Linux Mint 22
  • Browser Tested with current Firefox and Google Chrome

Additional context
As i said it works if you place the cursor within the line content and not at the end. For example if you place the image between the words Microsoft and Word the change is recognized and the save button enabled.

@JiHong88 JiHong88 added the bug label Nov 13, 2024
@JiHong88 JiHong88 added this to the 2.47.1 milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants