Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Prevent data inheritance on sub-list creation #51

Open
maxmax1992 opened this issue Aug 10, 2017 · 1 comment
Open

Prevent data inheritance on sub-list creation #51

maxmax1992 opened this issue Aug 10, 2017 · 1 comment

Comments

@maxmax1992
Copy link

maxmax1992 commented Aug 10, 2017

When I'm pressing tab the new list element inherits the parent list data, so If im having custom style like:
"list-style-type: circle" and start="10" the child list will have same data as parent!
Is there any way to prevent that behaviour?

@maxmax1992 maxmax1992 changed the title Block.data inheritance on child list elements Block.data inheritance on 'ul' or 'ol' list elements Aug 10, 2017
@Soreine Soreine changed the title Block.data inheritance on 'ul' or 'ol' list elements Prevent data inheritance on sub-list creation Nov 7, 2017
@Soreine
Copy link
Contributor

Soreine commented Nov 7, 2017

There is currently no way to prevent this.

Maybe this should come as an option. It seemed to be a safe assumption to copy the parent list's style data. But it might be wrong for other data indeed.

Another idea, would be to just disable the copy behavior, and let userland "normalize" lists afterward anyway they want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants