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

#2861 Allow specify pending format for paragraph #2885

Merged
merged 4 commits into from
Nov 22, 2024
Merged

Conversation

JiuqingSong
Copy link
Collaborator

@JiuqingSong JiuqingSong commented Nov 21, 2024

In addition to pending segment format, we now support specify pending format for paragraph. To do that, assign a pending format object to context.newPendingParagraphFormat within callback of formatContentModel:

                    this.editor.formatContentModel((_, context) => {
                        context.newPendingParagraphFormat = {...};

                        return false;
                    });

@JiuqingSong JiuqingSong changed the title #2861 #2861 Allow specify pending format for paragraph Nov 21, 2024
@JiuqingSong JiuqingSong marked this pull request as ready for review November 21, 2024 18:11
@JiuqingSong JiuqingSong merged commit 261055d into master Nov 22, 2024
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/2861 branch November 22, 2024 18:46
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