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

how can I get html without additional prefix fr-original? #121

Closed
meicx opened this issue Jan 22, 2019 · 1 comment
Closed

how can I get html without additional prefix fr-original? #121

meicx opened this issue Jan 22, 2019 · 1 comment

Comments

@meicx
Copy link

meicx commented Jan 22, 2019

I have use this.editor.html.get() to get html content but I find all class in html tag has changed to fr-original-class, how can I get the original html?
image
I have found _original_html in this.editor but it is empty:
image

image

@stefanneculai
Copy link
Contributor

The original attributes are being added in order to be able to revert back the HTML at the moment you have the useClasses option disabled. If you would like to remove them, then you could be either enable the useClasses option or filter the result and remove them. With the 2nd approach you should consider the fact that you might not be getting the same editing experience if you put the editor ouput back in the editor.

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

2 participants