editor-js / editor-js/table

[Bug] Table with heading slices first two rows

Open
#99 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
146
Forks
162
Avg merge
5m
Merged PRs (30d)
1

Description

Editor version: 2.25.0
Editor Table version: 2.0.2

When I create a table without a header and save it, all the json data is fine.
But in the case of a header, the first two lines are sliced.

### Save method

`interface IEditorCore extends EditorJS {
destroy(): Promise,
clear(): Promise,
save(): Promise,
render(data: OutputData): Promise
}`
`
const editorCore = useRef()
`
`
const handleInitialize = useCallback((instance: IEditorCore) => {
editorCore.current = instance
}, [])
`
`
await editorCore.current.save()
`

### Without heading

![wout-editor](https://user-images.githubusercontent.com/76753006/180857496-ead099d9-1776-4d08-88dd-d992020efb7c.png)
![wout-console](https://user-images.githubusercontent.com/76753006/180857504-ea3001b0-f5ed-420d-b9a9-edf8b47c6e4c.png)

### With heading

![w-editor](https://user-images.githubusercontent.com/76753006/180857151-096617b7-e228-46b4-8cf2-92a4442de0bd.png)
![w-console](https://user-images.githubusercontent.com/76753006/180857162-837a94c1-fc59-4252-b04a-79efb027cd63.png)

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.