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.

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.4.tar.gz (803.4 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.4-py3-none-any.whl (808.6 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-editorjs-component-0.1.4.tar.gz.

File metadata

File hashes

Hashes for streamlit-editorjs-component-0.1.4.tar.gz
Algorithm Hash digest
SHA256 be33607934c1fabd3f4ee5820cc7dc470ad2eafa7905db429f2b5c0f3bc3d929
MD5 28f52e6cb1175ce8df244daeb5fec849
BLAKE2b-256 36574929dc19da0858b9a144b882ea262852340791f5b21694ac067d74481b83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_editorjs_component-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b2f3236cd796ab87b2d209b10c69fb86e6ce7b031c025af94c6fdf8ee8fad5f3
MD5 5fffffe2eac62ef57863a545e2c8d77c
BLAKE2b-256 6714561143b0341b4aac5e5e4aec224fdbd685d8bc22f4e67d3c895c3c70287e

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