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

Ordered lists do not work - counterType is read only #137

Open
holybobrius opened this issue Mar 6, 2025 · 1 comment · May be fixed by #138
Open

Ordered lists do not work - counterType is read only #137

holybobrius opened this issue Mar 6, 2025 · 1 comment · May be fixed by #138

Comments

@holybobrius
Copy link

Hi! I'm getting this error when adding ordered list to editor.js.

Image

The list is displayed correctly after creating it, but fails to render if it comes from editor's data property

@holybobrius holybobrius changed the title Ordered lists do not work Ordered lists do not work - counterType is read only Mar 6, 2025
@holybobrius
Copy link
Author

The issue happens only when the data comes from backend, if the exact same JSON is stored locally everything works fine. I managed to workaround it by cloning data from backend and passing the cloned object to the editor like this:
const dataFromBackend = structuredClone(originalData);

@holybobrius holybobrius linked a pull request Mar 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant