nested-list
nested-list copied to clipboard
Ordered lists do not work - counterType is read only
Hi! I'm getting this error when adding ordered list to editor.js.
The list is displayed correctly after creating it, but fails to render if it comes from editor's data property
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);