Skip to content
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

Standalone editor: Refactor list format handler 1 #2136

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

JiuqingSong
Copy link
Collaborator

Today list format handlers needs to decode/encode metadata when do DOM and Content Model conversion. This now happens in roosterjs-content-model-dom package. However we want to make this package only contains the core conversion code, but put the complex editing part to roosterjs-content-model-editor package. So I need to split out the metadata related code. Then the remaining code only read/write existing format styles but no need to do reformat (such as reapply list item number style)

This is the first step, I did some code renaming to prepare for the next step, including:

ListStylePositionFormat => ListStyleFormat
ContentModelFormatMap.listItem => ContentModelFormatMap.listItemThread

Also fix some minor bug in demo site buttons.

@JiuqingSong JiuqingSong merged commit ce3cc14 into master Oct 12, 2023
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/listrefactor1 branch October 12, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants