Skip to content

Fix bullet list input role for CJK input#2752

Merged
juliusknorr merged 1 commit into
masterfrom
fix/2749
Jul 25, 2022
Merged

Fix bullet list input role for CJK input#2752
juliusknorr merged 1 commit into
masterfrom
fix/2749

Conversation

@susnux

@susnux susnux commented Jul 24, 2022

Copy link
Copy Markdown
Contributor

Summary

When using IME for CJK character input it is called after the composing
is finished, at this point there might be more than one character.

Example

Before entering the same work (sakura) as Japanese Kanji and Hiragana, Kanji is one symbol so it worked, Hiragana are three syllables symbols so it does not:
Input using IME does not work

After this patch using IME works as expected:
Input using IME is correctly formatted

@susnux susnux added bug Something isn't working feature: formatting Features related to text formatting and node types 3. to review labels Jul 24, 2022
@susnux susnux requested a review from max-nextcloud July 24, 2022 19:38

@max-nextcloud max-nextcloud left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, minimal fix to the point -- thanks a lot!
I wonder if there would be an easy way to test this. But i don't think we're testing input rules yet.

@juliusknorr

Copy link
Copy Markdown
Member

/compile amend /

When using IME for CJK character input it is called after the composing
is finished, at this point there might be more than one character.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@juliusknorr juliusknorr merged commit 147b408 into master Jul 25, 2022
@juliusknorr juliusknorr deleted the fix/2749 branch July 25, 2022 06:14
@susnux

susnux commented Jul 25, 2022

Copy link
Copy Markdown
Contributor Author

I wonder if there would be an easy way to test this. But i don't think we're testing input rules yet.

I wanted to add a cypress test, but I did not find a way to test IME input

@susnux

susnux commented Jul 25, 2022

Copy link
Copy Markdown
Contributor Author

I think this should also be backported to stable 24

@juliusknorr

Copy link
Copy Markdown
Member

/backport to stable24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working feature: formatting Features related to text formatting and node types

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asterisk not changed to unordered list

3 participants