flask-wysiwyg provides custom form fields to render wysiwyg editor instead of regular textareas. It takes care of cleaning html for you too. With its super secure defaults you do not want to modified it's whitelisting rules.
Project description
flask-wysiwyg provides custom form fields to render wysiwyg editor instead of regular textareas. It takes care of cleaning html for you too. With its super secure defaults you do not want to modified it’s whitelisting rules.
how to use? from flask-wysiwyg import WysiwygField
- class InfoForm(Form):
title=StringField(‘Title’,validators=[Required(), Length(1, 64)]) body=WysiwygField(“txteditor”,validators=[Required()])
use “WysiwygField” field.
Don’t forget the download the bootstrap-wysiwyg.add the css and javascrpts.
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
File details
Details for the file flask-wysiwyg-0.1.zip
.
File metadata
- Download URL: flask-wysiwyg-0.1.zip
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a69caffa9b489fef0d7b09b58e986442b658a8317a8b0a2496b05b9e4cb0e1be |
|
MD5 | bbc98c3cb81f49cf6d04ae66bf2dc833 |
|
BLAKE2b-256 | 47d206cbdb7cb9e945c6f3f50a6fefb153cd6faa28e70647a30543d57b77b57e |