8000 GitHub - juliomax/django-cked-1: CKEditor and elFinder integration for Django Framework
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

juliomax/django-cked-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django CKEd

CKEditor and elFinder integration for Django Framework.

Provides a RichTextField and CKEditorWidget with upload and browse support.

alt text alt text

Installation

    pip install django-cked

or

    pip install -e git+git://github.com/dead23angel/django-cked.git@master

    

Demo

We have prepared a demo project is available on the link https://github.com/DOOMer/django-cked-demo to demonstrate the application.

Configuration

Add cked to your INSTALLED_APPS setting.

Then set ELFINDER_OPTIONS in your settings:

    ELFINDER_OPTIONS = {
        ## required options
        'root': os.path.join(PROJECT_ROOT, 'media', 'uploads'),
        'URL': '/media/uploads/',
    }

And add CKEd URL include to your project urls.py file:

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

Settings

Usage

Model field

    from django.db import models
    from cked.fields import RichTextField


    class Entry(models.Model):
        text = RichTextField()

Widget

    from django import forms
    from cked.widgets import CKEditorWidget

    class MyForm(forms.Form):
        text = forms.CharField(widget=CKEditorWidget)

NOTE: If you are using custom forms, dont’r forget to include form media to your template:

    {{ form.media }}
    

About

CKEditor and elFinder integration for Django Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.3%
  • HTML 28.9%
  • Python 13.4%
  • CSS 3.4%
0