onecode369 / WYSIWYG

Android Rich Text Editor
Apache License 2.0
56 stars 14 forks source link
android kotlin library rich-text-editor wysiwyg-editor

WYSIWYG

License

WYSIWYG is a Rich Text Editor for Android made in Kotlin

Demo

Toolbar Preview

Supported Functions

Undo
Redo
Bold
Italic
Subscript
Superscript
Strikethrough
Underlined
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
TextColor
BackgroundColor
Intdent
Outdent
Text Align Left
Text Align Center
Text Align Right
Text Align Justify All
Ordered List
Unordered List
Quote
Insert Image
Insert Link
Insert Code
Write equations with LaTeX ( works only when you are connected to internet )
Todolist List

Changeable Atributes of Editor

Font Size
Background Color
Width
Height
Placeholder
Load CSS
State Callback

How you can add it to your app

Add this in your root build.gradle at the end of repositories:

allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
  }
}
dependencies {
  implementation 'com.github.onecode369:WYSIWYG:$WYSIWYG_version'
}

How to implement WYSIWYG Editor to your app

Adding editor to your layout

You can see the XML file to understand how to implement it to your app

Using it with your application

You can see the Activity File to understand how to use it


Works on Android SDK 21 and above


My Thank's goes to CodeCogs ( Open Source Scientific Library ) for LaTeX images


Devloped by "One Code" - @onecode369