Skip to main content

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


Download files

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

Source Distribution

streamlit_editorjs_component-0.1.5.tar.gz (806.8 kB view details)

Uploaded Source

Built Distribution

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

streamlit_editorjs_component-0.1.5-py3-none-any.whl (1.6 MB view details)

Uploaded Python 3

File details

Details for the file streamlit_editorjs_component-0.1.5.tar.gz.

File metadata

File hashes

Hashes for streamlit_editorjs_component-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ef7de1459643050d24232244916678714c7c78a90d2021229fc141003d2c89a5
MD5 5a800c78fd6632c285a13f4e3d4732c5
BLAKE2b-256 b1a79bc6cb14bbe8928a3d4f64f255e85b9545ad6d54fcdd78118a83c6b7da40

See more details on using hashes here.

File details

Details for the file streamlit_editorjs_component-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_editorjs_component-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7862af880ad932b06a008ac1067d70d56ee2b11a5f8721e567400c770ec10ddc
MD5 e6f87ec5b105c0d1be68c7f725d512d0
BLAKE2b-256 e32eb695423ed83c23314f039016c01f2b4a977d01412a1e3d5b684b956862ff

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