Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array for content breaks editor #3773

Closed
1 of 2 tasks
adriangroch opened this issue Feb 22, 2023 · 0 comments · Fixed by #3786
Closed
1 of 2 tasks

Array for content breaks editor #3773

adriangroch opened this issue Feb 22, 2023 · 0 comments · Fixed by #3786
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@adriangroch
Copy link

What’s the bug you are facing?

As per the typings for Content:

export declare type Content = HTMLContent | JSONContent | JSONContent[] | null;

A JSONContent array is valid, however the editor breaks if you supply an array

Which browser was this experienced in? Are any special extensions installed?

All

How can we reproduce the bug on our side?

Change the editor content prop to an array

Can you provide a CodeSandbox?

https://codesandbox.io/s/friendly-hooks-z00prn?file=/src/App.js

What did you expect to happen?

The editor to load

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@adriangroch adriangroch added the Type: Bug The issue or pullrequest is related to a bug label Feb 22, 2023
@adriangroch adriangroch changed the title Empty array for content breaks editor Array for content breaks editor Feb 22, 2023
gethari added a commit to gethari/tiptap that referenced this issue Feb 24, 2023
gethari added a commit to gethari/tiptap that referenced this issue Feb 24, 2023
bdbch pushed a commit that referenced this issue Feb 24, 2023
* fix: #3773 - Array for content breaks editor

* fix: lint warning
aliasliao pushed a commit to aliasliao/tiptap that referenced this issue May 24, 2023
* fix: ueberdosis#3773 - Array for content breaks editor

* fix: lint warning
andrewlu0 pushed a commit to trybaseplate/tiptap that referenced this issue Oct 20, 2023
* fix: ueberdosis#3773 - Array for content breaks editor

* fix: lint warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant