editorjs component for streamlit
Project description
streamlit-editor-js-component
Custom component for editorjs.
Editorjs is json-based rich-text-editor.
Installation
pip install streamlit-editorjs-component
Getting started
import streamlit as st
from streamlit-editorjs-component import streamlit_editorjs
content = streamlit_editorjs(height=500)
st.write(content)
Args:
data (dict, optional): initial json data formatted as EditorJS. Defaults to None.
key (str, optional): Streamlit state key. Defaults to None.
height (int, optional): Component block height it the content over the height, it makes scroll. Defaults to 500.
readonly (bool, optional): Readonly mode [not updated in PYPI.]
Returns:
dict: dictionary content from EditorJS.
For developer
Add new plugins
Add tools to constant.js
yarn install
yarn build
streamlit run test/st_component_example.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_editorjs_component-0.1.5.tar.gz.
File metadata
- Download URL: streamlit_editorjs_component-0.1.5.tar.gz
- Upload date:
- Size: 806.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef7de1459643050d24232244916678714c7c78a90d2021229fc141003d2c89a5
|
|
| MD5 |
5a800c78fd6632c285a13f4e3d4732c5
|
|
| BLAKE2b-256 |
b1a79bc6cb14bbe8928a3d4f64f255e85b9545ad6d54fcdd78118a83c6b7da40
|
File details
Details for the file streamlit_editorjs_component-0.1.5-py3-none-any.whl.
File metadata
- Download URL: streamlit_editorjs_component-0.1.5-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7862af880ad932b06a008ac1067d70d56ee2b11a5f8721e567400c770ec10ddc
|
|
| MD5 |
e6f87ec5b105c0d1be68c7f725d512d0
|
|
| BLAKE2b-256 |
e32eb695423ed83c23314f039016c01f2b4a977d01412a1e3d5b684b956862ff
|