codex-team / editor.js

A block-style editor with clean JSON output
https://editorjs.io
Apache License 2.0
28.69k stars 2.08k forks source link

【I'm in a hurry.】Block's save method does not save Html fragments #893

Closed isnl closed 4 years ago

isnl commented 5 years ago

This is my custom tools. I want the save method of blocks to get an HTML fragment image

But when you call the save method of the editor instance, you get this. image

christoph-kluge commented 5 years ago

Is this maybe corelated to https://github.com/editor-js/table/issues/36#issue-497848037 ? It's also a custom module I was puzzled why italic, bold and some other inline tools are working but not newlines.

Could you verify if you are able to use italic or bold elements in your html?

neSpecc commented 4 years ago

See https://editorjs.io/sanitize-saved-data