nested-list icon indicating copy to clipboard operation
nested-list copied to clipboard

Ordered lists do not work - counterType is read only

Open holybobrius opened this issue 9 months ago • 1 comments

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 avatar Mar 06 '25 12:03 holybobrius

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 avatar Mar 07 '25 13:03 holybobrius