Skip to main content

djace_editor provides integration for ajax.org ACE with Django

Project description

What’s that

djace_editor is a reusable application for Django, using Ace editor

Forked on Bradley Ayers.

Dependence

  • Django >= 1.3

Getting started

  • Install djace_editor:

`pip install djace_editor`

  • Add ‘djace_editor’ to INSTALLED_APPS.

Using in model

from django.db import models
from djace_editor import AceField

class Entry(models.Model):
    title = models.CharField(max_length=250, verbose_name=u'Title')
    text = AceField(verbose_name=u'Text')

or use custom parametrs:

text = AceField(
    verbose_name=u'Text',
    theme="terminal",
    width="800px",
    height="500px"
)

Using for only admin interface

from django import forms
from djace_editor import AceWidget
from blog.models import Entry

class EntryAdminForm(forms.ModelForm):
    class Meta:
        model = Entry
        widgets = {
           'short_text': AceWidget(),
        }

class EntryAdmin(admin.ModelAdmin):
    form = EntryAdminForm

AceWidget takes the same parameters as AceField.

Contributing

  1. Fork it!

  2. Create your feature branch: git checkout -b my-new-feature

  3. Commit your changes: git commit -am ‘Add some feature’

  4. Push to the branch: git push origin my-new-feature

  5. Submit a pull request =]

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

djace_editor-0.9.1.tar.gz (2.1 MB view details)

Uploaded Source

File details

Details for the file djace_editor-0.9.1.tar.gz.

File metadata

  • Download URL: djace_editor-0.9.1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for djace_editor-0.9.1.tar.gz
Algorithm Hash digest
SHA256 1a9bd0857b3c73287174a6b2cad1fbfb2f588dba626543f10a88377364d93b38
MD5 d0d0315e7f4f265c07d2dd32524f0307
BLAKE2b-256 e8aa0b2da9ff62943b0cf95c9b8dffd8fcbf81dea099ebba5b610e3159ed9cae

See more details on using hashes here.

Supported by

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