nnhubbard / ZSSRichTextEditor

A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view
MIT License
3.78k stars 585 forks source link

Toolbar button status (black or blue colour) does not change on selected text #112

Closed kostastsi closed 8 years ago

kostastsi commented 8 years ago

Write any text you want. Then, select a part of it and press any style button, for example bold one.The selected text turns into bold style but the button remains blue. If you deselect the text and then select it again, works fine, by showing the bold button black. Same behaviour is replicated while selecting a bolded text and try to unbold its style. Please provide any advice or fix.

angBiu commented 8 years ago

I have the same problem.If you have solve it,please share it.Thank you.

kostastsi commented 8 years ago

No, i haven't solved it. I am waiting for a possible fix too.

nnhubbard commented 8 years ago

Happy to take pull requests for this. I just don't have time right now to address the issue.

kcrawded commented 8 years ago

iOS 8.3 works just fine. But on iOS 9.0 and higher same problem as described above.

angBiu commented 8 years ago

The zss_editor.setUnderline and zss_editor.setStrikeThrough cannot contain in one word!

nnhubbard commented 8 years ago

@angBiu Not sure what you mean.

angBiu commented 8 years ago

@nnhubbard Sorry,I can't express it clearly.When you set the word with the style 'underline' and 'strikeThrough',input some words,then you set the style 'underline' or 'strikeThrough',the words style will disappear.Sorry for my poor English.Thanks.

ghost commented 8 years ago

@kostastsi I have been unable to reproduce this so I am going to close this issue.

@angBiu your issue to do with underline and strikethrough is in another open issue which I am looking into.