codex-team / codex-team/editor.js

On save data output do not display as expected

Open
#1,660 9 comments 2 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

Describe a bug.
I noticed that on save data output does not show result instead "Block «header» skipped because saved data is invalid"

![HelloWorld](https://user-images.githubusercontent.com/26607758/115018363-6cba7300-9ec0-11eb-9e63-4d986ff2b8b6.png)
![Output](https://user-images.githubusercontent.com/26607758/115018367-6deba000-9ec0-11eb-9bdf-537a08391f66.png)

Expected behavior: It should display as

![Expected Behaviour](https://user-images.githubusercontent.com/26607758/115018775-f66a4080-9ec0-11eb-9107-638dc90a27bf.png)

The reason the output is not showing as desired as I figured out that Microsoft Editor is installed and when it finds a grammatical error highlight with an underline "Seen in above picture **World** is underlined blue". This adds additional div element to the block under the h1 element
![html](https://user-images.githubusercontent.com/26607758/115019197-86a88580-9ec1-11eb-9a85-a2424307ff39.png)

If I click in the underline word "World" and click ignore the underline disappears and so the additional div element is removed
![ignore](https://user-images.githubusercontent.com/26607758/115019346-c2dbe600-9ec1-11eb-99d1-43f49a49ab8b.png)
![html-final](https://user-images.githubusercontent.com/26607758/115019482-ee5ed080-9ec1-11eb-9c3f-0b8c697a2dcb.png)

Following the click on ignore, on save data output displays as expected. Kindly can you look into the issue.

Screenshots:

Device, Browser, OS: Lenovo, Microsoft Edge, Windows

Editor.js version: 2.20.2

Plugins you use with their versions: Header 2.6.1

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.