-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
feat(doc): set bold in selection #346
Conversation
Jocs
commented
Oct 31, 2023
•
edited
Loading
edited
- Set bold command
- Undo/Redo set bold
- Support multiple selections
- Perceive the style in the selection, cancel it if it's already bold, and bold it if it doesn't
ff83eab
to
f4ad03c
Compare
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.
The following issues need to be addressed before we merge this.
And there is another issue: the toggle bold button in the toolbar should be activated if the selected texts are in bold. @jikkai The sheet demo seems abnormal on this as well. Could you please take a look at it?
The toggling bold shortcut could be implemented in this PR as well? |
@wzhudev I tend to put it in a different PR, This PR is mainly to run through the process of inline formats. |
@wzhudev This has not been implemented yet, I wrote a method(getFormatValueInSelection) to determine the format in selections, which can be used later. |
OK. However, we should fix that for Univer sheet. 💯 |