Giter Site home page Giter Site logo

richeditor's Introduction

RichEditor

RichEditor is a rich text editor work on Android.

Screenshots:

Until now,it support these styles:

  • Bold
  • Italic
  • Underline
  • Strikethrough
  • Quote
  • Bullet
  • FontSize
  • Align Left
  • Align Center
  • Align Right
  • Todos
  • Insert Image

All Styles can export as HTML , as well it also can parse HTML to native weight then edit or display.

Download

implementation 'com.github.scwen7:RichEditor:1.0.1'

Or you can git clone https://github.com/ScWen7/RichEditor.git and import RichEditor as a module.

Other way,you may have different business scenarios, I'd like recommend to import RichEditor into your project direclty and add it as a local module dependency.

This library has used Glide

implementation 'com.github.bumptech.glide:glide:4.8.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'

Example

In your Layout

 <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >
            <com.scwen.editor.RichEditer
                android:id="@+id/editor_content"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="20dp"
                android:layout_marginTop="10dp"
                android:layout_marginRight="20dp"
                android:layout_marginBottom="20dp"
                android:paddingLeft="5dp"
                android:paddingRight="5dp"
                android:paddingBottom="5dp"/>

</ScrollView>

In your Activity

RichEditer mEditor= findViewById(R.id.editor_content)

FontSize

mEditor.fontSize();

Alignment

mEditor.alignment();

Bullet

mEditor.bullet();

Todo

mEditor.todo();

Bold

mEditor.bold();

Italic

mEditor.italic();

Underline

mEditor.underline();

Quote

mEditor.quote();

Insert Image

mEditor.insertImage(imagePath);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.