-
Notifications
You must be signed in to change notification settings - Fork 158
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
Keep start property and marker (if supported) when copying list from WordOnline #1200
Conversation
this.listTypes.pop(); | ||
} | ||
|
||
if (this.listTypes[listTypesLength - 1] == ListType.Ordered) { | ||
this.node.style.listStyleType = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why set to empty? What if the parent level list also have a list style type, should we also follow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this should be a separate issue, right?
Does it repro without this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, separate issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. please open issue to track.
When copying lists from Word Online, sometimes the marker is not saved and the start of the list is reset:
For example, this content in Word Online
Some of the Word Online markers in the clipboard are unsupported. If I tried to use them the marker would look bad, so only can support some of the Word Online Markers
Why some of the markers are not supported:
The clipboard provided from WordOnline does not contain the data-leveltext hence we cannot use it to change the list marker