wtforms aceditor component
Project description
Aceditor wtforms control
Aceditor wtforms control
Use with flask-admin
from wtforms_aceditor import AceEditor
class ExampleView(ModelView):
form_widget_args = {
'config_yaml': {
'style': 'width:100%; height: 200px;'
}
}
form_args = {
'config_yaml': {
'widget': AceEditor('yaml', minLines=4, tabSize=4),
'validators': [YamlValidator()]
}
}
Use with flask-forms
from wtforms_aceditor import AceEditor
class SampleForm(FlaskForm):
code = TextAreaField('config_yaml', widget=AceEditor('yaml'))
Run example
FLASK_APP=example1.app flask run
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
File details
Details for the file wtforms_aceditor-0.0.2.tar.gz
.
File metadata
- Download URL: wtforms_aceditor-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f72a6aa42428cceb762eea9c37f7dca8a61f68328792aca0f8af1f845fa9fbf |
|
MD5 | 6152ce5568c222b32a5ed13d0d2a0f38 |
|
BLAKE2b-256 | 11a2876ed3f13bbd9980d4e9b0ebb4ce283a4461272675d8aab88be51aeaaa95 |
File details
Details for the file wtforms_aceditor-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: wtforms_aceditor-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b7560bfc239e9c1d77f109a1c994308386fa507d590e6ce4d52e36c77cbff44 |
|
MD5 | c2f9a40c891b942c27f30d420960890d |
|
BLAKE2b-256 | 7a48623584ede66b639573208b272a1b5b8a169784af21b716766561b19dca0e |