Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

TinyMCE editor extension for WTForms

Project Description

TinyMCE editor extension for WTForms

1. Installation

Under your project environment run:

$ pip install wtf-tinymce

2. Configuring

2.1. Initializing module

Under your application initialization (e.g. app = Flask(__name__)) add module import and initialization:

from wtf_tinymce import wtf_tinymce

2.2. Adding template

In your create or edit templates (or custom templates with wtforms) add import:

{% import 'wtf_tinymce/editor.html' as tinymce with context %}

and under your site footer block add template initialization like:

{% block tail %}
    {{ super() }}
    {{ tinymce.init_wtf_tinymce(default_content_css='css/tinymce.css') }}
{% endblock %}

Note: default_content_css is optional parameter with relative path under project static folder to your custom stylesheet for editor content.

3. Usage

from wtf_tinymce.forms.fields import TinyMceField

class MyForm(Form):
    text = TinyMceField(
        'My WTF TinyMCE Field label',
        tinymce_options={'toolbar': 'bold italic | link | code'}

To optional parameter tinymce_options you can add any TinyMCE options (see official documentation for details.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
wtf-tinymce-0.1.3.tar.gz (453.5 kB) Copy SHA256 Checksum SHA256 Source Mar 1, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting