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

Don't F**k with HTML option #1320

Closed
bobwoofix opened this issue Oct 16, 2023 · 6 comments
Closed

Don't F**k with HTML option #1320

bobwoofix opened this issue Oct 16, 2023 · 6 comments
Milestone

Comments

@bobwoofix
Copy link

Seriously, there should be a 'Don't F**k with My HTML' option. I don't understand why so much of the HTML is being changed, deleted or wrapped with some custom tags.

@melloware
Copy link
Contributor

We have incorporated SunEditor in PrimeFaces Extensions and missing this ability to not touch the HTML is the biggest complaint have gotten so far about SunEditor: https://www.primefaces.org/showcase-ext/sections/sunEditor/basicUsage.jsf

@rider87
Copy link

rider87 commented Feb 22, 2024

Any plans here? Without such option this Editor is completely useless.

@JiHong88 JiHong88 added this to the 2.45.2 milestone Mar 2, 2024
@JiHong88
Copy link
Owner

JiHong88 commented Mar 2, 2024

It is designed that way to process formats such as images and tables.
If everything is done in free form, it is difficult to select or edit images or etc.
This is my lack of skill.
In version 3.0.0, I modifying it so that users can select it step by step.

Before updating to version 3.0.0, I will add 'strictMode' to the next version to prevent HTML clean-related tasks.

And you can temporarily disable it as follows:

editorInstance.core.cleanHTML = function (html) {return html;}
editorInstance.core.convertContentsForEditor = function (html) {console.log(html);return html;}

@melloware
Copy link
Contributor

awesome @JiHong88 !!!

@bobwoofix
Copy link
Author

bobwoofix commented Mar 20, 2024

Thanks heaps for your help with this -- let me know if I can assist in some way.

BTW what version do these functions work on? -- and what do they do?

@JiHong88
Copy link
Owner

JiHong88 commented Mar 23, 2024

It is version 2.
It is difficult to change many things in the current version.
I'll simply added an option that does not force the HTML format to be modified.

Version 3 is currently under development and is almost complete.
https://github.com/JiHong88/suneditor/tree/version/3

JiHong88 added a commit that referenced this issue Mar 23, 2024
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

4 participants