codex-team / editor.js

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

Converting from text removes html tags [Bug] #2157

Open NeoKms opened 1 year ago

NeoKms commented 1 year ago

Converting from text to quotation and other data types discards all formatting. Using the existing conversionConfig solution, it is not possible to pass fully unchanged text. In my system, it is important that at least the links are preserved when converted to a quote.

Testing the export and import showed that the export passes an untouched string, and the import accepts an already processed one. This happens outside the plugin and from the plugin, there is no way to influence it.

Steps to reproduce:

  1. Go to https://editorjs.io/
  2. Convert paragraph 7 (There are dozens of) to a quote

Expected behavior: Full text will be sent Screenshots: image

Device, Browser, OS: any

Editor.js version: 2.25.0

Plugins you use with their versions: @editorjs/paragraph 2.8.0 @editorjs/quote 2.4.0

ARH3 commented 1 year ago

Hello @NeoKms did you ever find a solution to this? Really annoying!

NeoKms commented 1 year ago

@ARH3 installed the plugins locally and changed their code so that the conversion expects an event with the full text from the paragraph (an event containing the full data is emitted on the side of the paragraph)

winrunner commented 11 months ago

Same prob, i'm catching html tags when saving data, but is not solution.