Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/akshay1728/streamlit-jodit

Jodit editor component for streamlit
https://github.com/akshay1728/streamlit-jodit

html-editor jodit jodit-react joditjs pyhton rich-text-editor streamlit streamlit-component streamlit-jodit streamlitjodit

Last synced: 2 months ago
JSON representation

Jodit editor component for streamlit

Awesome Lists containing this project

README

        

# streamlit-jodit

Streamlit component that allows you to use Jodit HTML editor in streamlit. Jodit is a open source rich text editor
https://xdsoft.net/jodit/

This component is based on react wrapper - https://github.com/jodit/jodit-react

## Installation instructions

```sh
pip install streamlit-jodit
```

## Usage instructions

```python
import streamlit as st

from streamlit_jodit import st_jodit

config={

'minHeight':300,
'uploader': {
'insertImageAsBase64URI': True,
'imagesExtensions': ['jpg', 'png', 'jpeg', 'gif', 'svg', 'webp']
},
}
content = st_jodit(config)
st.write(content)
```
By default code will pass **readonly:false** to config.
List of options for config is available at https://xdsoft.net/jodit/docs/options.html