Skip to content

feat: Add wordBreak editorOption and use it to lineBreakComputer function#156242

Merged
hediet merged 4 commits intomicrosoft:mainfrom
Albert-cord:feat/wordBreak
Nov 21, 2022
Merged

feat: Add wordBreak editorOption and use it to lineBreakComputer function#156242
hediet merged 4 commits intomicrosoft:mainfrom
Albert-cord:feat/wordBreak

Conversation

@Albert-cord
Copy link
Contributor

This PR fixes #154263
By adding a wordBreak editorOption below, to resolve the issue.

wordBreak: 'normal' | 'keepAll'

when wordBreak option is default value, 'normal', render:
image

when wordBreak option is 'keepAll', render:
image

and add 2 cases to test it.
feel free to review it.
thanks

@ghost
Copy link

ghost commented Jul 26, 2022

CLA assistant check
All CLA requirements met.

@alexdima alexdima requested a review from hediet November 19, 2022 07:24
@alexdima alexdima added this to the November 2022 milestone Nov 19, 2022
@hediet hediet merged commit 82db01c into microsoft:main Nov 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add a wordBreak editorOption to render CJK text without line-break when set wordWrap 'on'

4 participants