-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Switch off semantic correction and other DOM corrections #720
Comments
@vasotelvi Sorry I don't understand what I mean. |
I have to see raw text data in SunEditor. In raw text I have
When I initialize SunEditor, I have this semantic correction – heading extracted outside of div container
And every line break
transform to
Hope, I explained enough. |
You can use the
simple ex)
|
Unfortunately I can't modify and add extra classes in raw text to solve this inconvenience before I initialize SunEditor for textareas. 😪 |
I don't understand.. |
I believe what @vasotelvi is suggesting and I agree is to have a config setting that would disable semantic corrections for the entire component vs having to put this in a class attribute. With this setting, we would not want Suneditor to reorder tags or rewrite tags if they are valid HTML/XML. It is OK to remove tags not in the "whitelist", but not to restructure the HTML. Reasons:
|
Would it be easy to add a config setting that would achieve the same behavior as __se__tag for the entire component in the 2.x branch? |
@anthomus Yes you are right, In code view mode, I will modify the format format so that it does not check duplicates. "format" is an important prerequisite for the current editor function. |
The 2.41.0 version has been updated. |
Hi!
Is it possible to switch off semantic correction and other DOM corrections?
The text was updated successfully, but these errors were encountered: