You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I convert a paragraph to a header, for example, it strips all html tags.. including ones that should be saved by sanitize. Bold, italics, underline, links, and any other expected HTML gets stripped. This happens across all conversions that I've tested.
Select any paragraph block that has alternative formatting (inline code, marker, links, etc)
Convert it to a heading or quote, using the option available within the inline toolbar (on the left). You'll notice that all html tags are stripped and links, etc are lost.
Expected behavior: html tags should be preserved and interpreted by the rules defined in the Tool Class it is transforming into. Perhaps ideally, it runs through the onPaste and/or Sanitize functions... rather than stripping all html.
Here is some more evidence. This is the conversionConfig in my Tool:
And here is my console output, notice the missing on the import:
When I try to pass the entire data object through (which I know is not what I'm supposed to do)...
It clearly gets passed through a toString function of some sort along the way... and as a result shows up as [Object object] even in the console.
Since you are passing text through the export, no additional parsing should be necessary. Expected behavior is the exact string, including potential html and relevant markup, is received on the import.
If it helps anyone, I hope this is resolved rather than being expected behavior... but in the meantime I was able to work around it by using Tunes instead of Tools for my use case!
When I convert a paragraph to a header, for example, it strips all html tags.. including ones that should be saved by sanitize. Bold, italics, underline, links, and any other expected HTML gets stripped. This happens across all conversions that I've tested.
Steps to reproduce:
Expected behavior: html tags should be preserved and interpreted by the rules defined in the Tool Class it is transforming into. Perhaps ideally, it runs through the onPaste and/or Sanitize functions... rather than stripping all html.
Screenshots: easy to reproduce on editorjs.io
Device, Browser, OS: Macbook Pro, Mac OS 11.7, Chrome Version 108.0.5359.124 (Official Build) (x86_64)
Editor.js version: @latest as of 12/22/22
Plugins you use with their versions: Easily reproducable on editorjs.io
Thank you!!
The text was updated successfully, but these errors were encountered: