codex-team / editor.js

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

[Bug] v2.22.1 - v2.22.3 bold tags are not being added to output. #1859

Open adriangzz opened 2 years ago

adriangzz commented 2 years ago

Describe a bug. Same as #1631 bold tags are not appearing on final output. Only italics works. Also, copy pasting a bold text from a word document does work and it produces the tags.

Steps to reproduce:

  1. Set some text as bold.
  2. Check the output. { data: { text: "Yep." } ​​​id: "-Hu7x1FcoE" ​type: "paragraph" }

Expected behavior: { data: { text: "<b>Yep.</b>" } ​​​id: "-Hu7x1FcoE" ​type: "paragraph" }

Screenshots: Screenshot_2022-01-06_17-12-17 Screenshot_2022-01-06_17-12-31

Device, Browser, OS: (Firefox and Chrome), Arch Linux

Editor.js version: 2.22.1 - 2.22.2

Plugins you use with their versions: @editorjs/header @editorjs/image

adriangzz commented 2 years ago

Okay after much debugging I found a clue in this issue #1087. Turns out I was setting a font-weight in the css and this was making the api not save it with the tags.

Hope this helps someone.