Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/canopas/rich-editor-compose
Android WYSIWYG Rich editor for Jetpack compose.
https://github.com/canopas/rich-editor-compose
android android-library jetpack-compose kotlin rich-text-editor text-editor wysiwyg-editor
Last synced: 15 days ago
JSON representation
Android WYSIWYG Rich editor for Jetpack compose.
- Host: GitHub
- URL: https://github.com/canopas/rich-editor-compose
- Owner: canopas
- License: other
- Created: 2023-07-03T11:57:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-22T12:50:44.000Z (21 days ago)
- Last Synced: 2024-11-22T13:37:34.309Z (21 days ago)
- Topics: android, android-library, jetpack-compose, kotlin, rich-text-editor, text-editor, wysiwyg-editor
- Language: Kotlin
- Homepage:
- Size: 23.1 MB
- Stars: 76
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
- awesome-kotlin - RichEditor
- awesome-list - canopas/rich-editor-compose - Android WYSIWYG Rich editor for Jetpack compose. (Kotlin)
- jetpack-compose-awesome - WYSIWYG Rich Editor Compose - Android WYSIWYG Rich editor for Jetpack compose. (Libraries / UI)
- jetpack-compose-awesome - WYSIWYG Rich Editor Compose - Android WYSIWYG Rich editor for Jetpack compose. (Libraries / UI)
README
# RichEditor
Android WYSIWYG Rich editor for Jetpack compose.
## Features
The editor offers the following options:
- [x] **Bold**
- [x] *Italic*
- [x] Underline
- [x] Different Heading## How to add in your project
Add the dependency
```gradle
implementation 'com.canopas.editor:rich-editor-compose:X.X.X'
```## How to use ?
```
@Composable
fun Sample() {val context = LocalContext.current
val state = remember {
val input = /* YOUR INPUT */
RichEditorState.Builder()
.setInput(input)
.adapter(JsonEditorParser())
.build()
}RichEditor(
state = state,
modifier = Modifier
.fillMaxWidth()
.weight(1f)
.border(1.dp, Color.Gray)
.padding(5.dp)
)
}
```
# Demo
[Sample](https://github.com/canopas/RichEditorCompose/tree/main/app) app demonstrates how simple the usage of the library actually is.# Bugs and Feedback
For bugs, questions and discussions please use the [Github Issues](https://github.com/canopas/RichEditorCompose/issues).## Credits
RichEditor for compose is owned and maintained by the [Canopas team](https://canopas.com/). For project updates and releases, you can follow them on X at [@canopas_eng](https://x.com/canopas_eng).ComposeRichEditor: https://github.com/MohamedRejeb/Compose-Rich-Editor
# Licence
```
Copyright 2023 Canopas Software LLPLicensed under the Apache License, Version 2.0 (the "License");
You won't be using this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```