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

Fix an issue about bold/italic toggling with CJK #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pisces000221
Copy link

Before this change, we can only remove bold attribute of whole words.

This is a **bold** text

We select the word 'bold', click the 'bold' button and everything is okay.

This is a bold text

However, in Chinese/Japanese/Korean we don't have spaces between words.

No**spaces**between words in CJK

Therefore, selecting 'spaces' and clicking the 'bold' button will not work properly. It becomes

Nospaces**between words in CJK

I fixed this and it worked well for both Latin and CJK characters. Please take a look if possible. Thanks!

Pisces000221 added a commit to Pisces000221/plotipot that referenced this pull request Oct 1, 2014
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.

1 participant