Skip to main content

Streamlit component that allows you use Jodit editor (Rich text editor)

Project description

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/

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

Installation instructions

pip install streamlit-jodit

Usage instructions

import streamlit as st

from streamlit_jodit import st_jodit

config={
            
            'minHeight':300,
        'uploader': {
            'insertImageAsBase64URI': True,
            'imagesExtensions': ['jpg', 'png', 'jpeg', 'gif', 'svg', 'webp']
                    },
             }
value='Initial text to be displayed in editor'
content = st_jodit(config=config,value=value)
st.write(content)

By default code will pass readonly:false as config to the component. List of options for config is available at https://xdsoft.net/jodit/docs/options.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_jodit-1.2.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_jodit-1.2.0-py3-none-any.whl (4.0 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_jodit-1.2.0.tar.gz.

File metadata

  • Download URL: streamlit_jodit-1.2.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for streamlit_jodit-1.2.0.tar.gz
Algorithm Hash digest
SHA256 5f6b783db32c06f8399d2a02c1a23394ce56c21c75a938f810bed63ea6722279
MD5 62f310580e07e5daed5ee1834753fbe1
BLAKE2b-256 5fed61a00eb7e1a43285454241f30ae30522ade4190914928e073dc63812dd56

See more details on using hashes here.

File details

Details for the file streamlit_jodit-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_jodit-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f286e8634d82b04de2adf856011a4a7748fa31190f22b8df003b097e3e9ddd8d
MD5 0d8b6f95cd07292f92409fe5c7dbda1c
BLAKE2b-256 6c3159d77f0e725fc4631d7e353648ccaa9909c3d0a61471d8f26e3181114e0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page