Skip to main content

wtforms aceditor component

Project description

Upload Python Package

Aceditor wtforms control

Aceditor wtforms control

https://ace.c9.io/

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


Download files

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

Source Distribution

wtforms_aceditor-0.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

wtforms_aceditor-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

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

Hashes for wtforms_aceditor-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4f72a6aa42428cceb762eea9c37f7dca8a61f68328792aca0f8af1f845fa9fbf
MD5 6152ce5568c222b32a5ed13d0d2a0f38
BLAKE2b-256 11a2876ed3f13bbd9980d4e9b0ebb4ce283a4461272675d8aab88be51aeaaa95

See more details on using hashes here.

File details

Details for the file wtforms_aceditor-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for wtforms_aceditor-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b7560bfc239e9c1d77f109a1c994308386fa507d590e6ce4d52e36c77cbff44
MD5 c2f9a40c891b942c27f30d420960890d
BLAKE2b-256 7a48623584ede66b639573208b272a1b5b8a169784af21b716766561b19dca0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page