//添加依赖
compile 'jp.wasabeef:richeditor-android:1.2.0'
//控件
<jp.wasabeef.richeditor.RichEditor android:id="@+id/editor" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" />
//一行代码搞定mEditor.setHtml( text ) ;