Skip to main content

What’s that

djace_editor is a reusable application for Django, using Ace editor

Forked on Bradley Ayers.

Dependence

  • Django >= 1.9

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 =]

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-1.0.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djace_editor-1.0.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djace_editor-1.0.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for djace_editor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 92c26539c34db90f49913584feb0ee5a0a8e7dad2de96e2e58c9b2fa5565203c
MD5 5f52ec7a0237aec6ce0e9aec6b44fd6b
BLAKE2b-256 73631f29a3f65ffb23a798f85553c5cae89ab65da07e26b76d284300b8f1f12e

See more details on using hashes here.

File details

Details for the file djace_editor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: djace_editor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for djace_editor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3490cee5234517baa98bcdaf62d372d2d6240cefb1c94998107da11bf809101d
MD5 4f5f0abbca01f609106376d6add5a66e
BLAKE2b-256 22fd62c149fe0dff0bfde8bed9f30fae139afad89506f228c2a97f0ceb27bd64

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.9.2

1 file

0.9.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