codex-team / codex-team/editor.js

Converting from text removes html tags [Bug]

Open
#2,157 3 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/23613842/198976416-c6d99ddc-3e21-4f1e-aa81-0f300a3cc5ea.png)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.