Replies: 1 comment 2 replies
-
If you have a list "1. ... 2. ... 3. ..." and delete the first list item, you'd expect the subsequent list items to be decremented. Disabling this behaviour would prevent that from happening. I suggest that you add a new property to your list item element to indicate that this list item's |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have set my initial editor value with an ordered indent list starting from 8, as shown below:
![image](https://private-user-images.githubusercontent.com/149787125/339351675-58606334-34e9-4d47-a961-5ee6e48afc52.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk4MTM0OTAsIm5iZiI6MTcxOTgxMzE5MCwicGF0aCI6Ii8xNDk3ODcxMjUvMzM5MzUxNjc1LTU4NjA2MzM0LTM0ZTktNGQ0Ny1hOTYxLTVlZTZlNDhhZmM1Mi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwMVQwNTUzMTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNzU1NWMyZmQ1ZjI5MzAyZDI4ZjhiOTQ3YWRlYzEzNWM0YzhiMmU4ZGZmNGJjODU0ZDc4ODQ4Mzc2ZjdiNjM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2zZkEewrYfYxr3D1mfru_faxS0BH4MXQedDY7WCU8vs)
The corresponding Plate value is :
[{ align : "left", children : [{…}] color : "" indent : 1 lineHeight : 1 listStart : 8 listStyleType : "decimal" type : "div" }]
However, when I try to edit this, Plate starts the indent from 1, instead of 8. On further investigation I noticed that
normalizeFirstIndentListStart
function removeslistStart
property on the first element, if it already exists. Any reason for this functionality, and how can I override this?cc: @felixfeng33 @12joan @zbeyens
Beta Was this translation helpful? Give feedback.
All reactions