-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Problem with html inserted into editor #1445
Comments
Can you give me the problematic html source? |
@JiHong88 Is this issue solvable within SunEditor, or is it a library problem? We’re encountering the same issue with email signatures and are exploring solutions, but haven’t found any. Since SunEditor is widely used across our project, we’d prefer not to stop using it... |
@JiHong88 I am also experiencing this anomaly. Thank you |
Hi @JiHong88 , I noticed that the problem occurs with strictMode to false. I hope it can be helpful to you. |
@JiHong88 please fix this, it's very visible and I can't find any other way to workaround it!! I can't set strictMode to true! |
@JiHong88 the problem is located in image.js plugin, in update_image at this line:
if you add && this.options.strictMode to that if statement, the problem is solved, otherwise please tell me a way to make it work |
Describe the bug
If I insert some html code into the editor that contains an img tag this is modified by suneditor but does not respect the tag hierarchy for example if the image is inserted into a cell of a table.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect the html provided to be untouched if the notCleaningData property it's set to true or at least that the html tag hierarchy is respected.
Html to test
Screenshots
If applicable, add screenshots to help explain your problem.
**Desktop
The text was updated successfully, but these errors were encountered: