richeditor-android rich text editor

richeditor-android rich text editor

RichEditor for Android is a beautiful Rich Text WYSIWYG Editor for Android.

introduce:

A rich text editor is an input control that can display (edit) graphic effects. A webview is actually a rich text control (but it cannot be edited). However, the functions supported by the webview are too large, so it is not suitable for small and beautiful applications. The pursuit of performance . This control is ideal for notepad applications.

running result:

Instructions for use:

Gradle
1
2
3
4
5
6
7
repositories {
     jcenter()
}
 
dependencies {
     compile  'jp.wasabeef:richeditor-android:0.0.2@aar'
}

bold

1
2
RichEditor editor = (RichEditor) findViewById(R.id.editor);
editor.setBold();

Italics

1
2
RichEditor editor = (RichEditor) findViewById(R.id.editor);
editor.setItalic();

Insert picture

1
2
RichEditor editor = (RichEditor) findViewById(R.id.editor);

Listen for text changes

1
2
3
4
5
6
7
8
RichEditor editor = (RichEditor) findViewById(R.id.editor);
editor. setOnTextChangeListener( new  RichEditor.OnTextChangeListener() {
   @Override
   public void onTextChange(String text) {
     // Do omething
      Log.d( "RichEditor" "Preview "  + text);
   }
});

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326817799&siteId=291194637