Skip to main content

Introduction

django-fs-trumbowyg is the Django-related reusable app for integrating Trumbowyg WYSIWYG editor http://alex-d.github.io/Trumbowyg/.

Installation

  1. Install django-fs-trumbowyg using pip:

    $ pip install django-fs-trumbowyg
  2. Add 'trumbowyg' to your INSTALLED_APPS setting:

    INSTALLED_APPS = (
        ...
        'trumbowyg',
        ...
    )
  3. Update your urls.py:

    url(r'^trumbowyg/', include('trumbowyg.urls'))

Usage

Use TrumbowygWidget in your forms:

from django.forms import ModelForm
from django.contrib.admin import ModelAdmin
from trumbowyg.widgets import TrumbowygWidget
from your_app.models import YourModel

class YourModelAdminForm(ModelForm):
    class Meta:
        model = YourModel
        widgets = {
            'text': TrumbowygWidget(),
        }

class YourModelAdmin(admin.ModelAdmin):
    form = YourModelAdminForm


admin.site.register(YourModel, YourModelAdmin)

Credits

Download files

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

Source Distribution

django-fs-trumbowyg-0.1.4.tar.gz (63.6 kB view details)

Uploaded Source

File details

Details for the file django-fs-trumbowyg-0.1.4.tar.gz.

File metadata

File hashes

Hashes for django-fs-trumbowyg-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4e39edc169d053f23d237f3cbfa691899878be8ce44dd7195e2f91470c79b886
MD5 961a3f29901e884074d6a32b011125e6
BLAKE2b-256 6828b9c86ba1c06ce28baf89bf3098cae907429fdef038b04dc691543d639559

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page