Froala WYSIWYG editor is pretty cool "what you see is what you get" type of editor which has code at GitHub, is of high quality and has lots of features. If is free for OpenSource. For non-OpenSource it starts from $99 which isn't bad considering the effort to create something similar.
nice