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

blocks[] strips html tags #1115

Closed
ninjavis opened this issue Apr 21, 2020 · 3 comments
Closed

blocks[] strips html tags #1115

ninjavis opened this issue Apr 21, 2020 · 3 comments

Comments

@ninjavis
Copy link

Hi there! Thanks for this awesome plugin. I'm currently using it in Angular 9, however, when I add html to a code block, the object to be saved completely strips any html tags. Some other code tests like Typescript seem to work fine. Is this something your plugin does, or is it perhaps something Angular does? Any ideas how this can be resolved too, please? Many thanks!

this.editor.save().then((outputData) => {

  console.log('Article data: ', outputData))

}

this results in:

image

@gohabereg
Copy link
Member

Hi @ninjavis
This issue is related to the plugin, not the core.
There is already a PR for that editor-js/code#20. Should be merged soon

@sosie-js
Copy link

Maybe we can avoid this with a tool-configurator based on the suggestion you made me on #1280

@neSpecc
Copy link
Member

neSpecc commented Feb 16, 2023

Solved on the plugin side

@neSpecc neSpecc closed this as completed Feb 16, 2023
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