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

Fixed toolbar button status not updated on select text #114

Closed jay-zhu closed 8 years ago

jay-zhu commented 8 years ago

Refer to issue #112

Caused by two reasons:

  1. enabledEditingItems is not called when select text and apply the html style
  2. js runtime error in enabledEditingItems. e.target is always document, it should change to the current selected node
angBiu commented 8 years ago

Thanks for this @jay-zhu!