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 to use tui editor as html editor #3257

Open
rastermechanism opened this issue Jul 21, 2024 · 0 comments
Open

How to use tui editor as html editor #3257

rastermechanism opened this issue Jul 21, 2024 · 0 comments
Labels

Comments

@rastermechanism
Copy link

I want to integrate this editor as html editor for my website,
html content is coming from cms and it is a valid html without any risk. Upon pulling it I want to set it to editor html ,
here is what I did

`// fetched from cms
htmlContent = await fetch (url) ;

editorInstance.setHTML(htmlContent );
`

But seems editor is stripping most of the valid html tag, since those html content was not created using this editor hence it has different
tag , like math tag , with katex class.

Is there any way I can force the editor not to change the html content and show it in editor, even if I loose some css, because
it has even css that was not recognized by toast ui editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant