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
Comments
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 |
Any plans here? Without such option this Editor is completely useless. |
It is designed that way to process formats such as images and tables. 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;} |
awesome @JiHong88 !!! |
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? |
It is version 2. Version 3 is currently under development and is almost complete. |
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.
The text was updated successfully, but these errors were encountered: