• This repository has been archived on 23/Oct/2021
  • Stars
    star
    126
  • Rank 282,927 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TinyMCE 4 editor widget for Django

django-tinymce4-lite

https://travis-ci.org/romanvm/django-tinymce4-lite.svg?branch=master https://codecov.io/github/romanvm/django-tinymce4-lite/coverage.svg?branch=master

django-tinymce4-lite is a reworked fork of django-tinymce4. It provides a fully functional TinyMCE 4 editor widget that can be used in Django forms and models.

http://romanvm.github.io/django-tinymce4-lite/_images/screenshot.png

The application can use django-filebrowser-no-grappelli as a file manager for TinyMCE 4 to insert images and file links into edited text.

Warning: TinyMCE 4 is incompatible with TinyMCE 3. Read TinyMCE docs for more information about how to configure TimyMCE 4 editor widget.

Note: This package includes the latest available version of TinyMCE 4 - 4.9.2. Currently there are no concrete plans to support TinyMCE 5, and if it happens, it will be in a separate package with a different name.

Compatibility

  • Python: 3.5+
  • Django: 1.11+

Quick Start

Install django-tinymce4-lite:

$ pip install django-tinymce4-lite

Add tinymce to INSTALLED_APPS in settings.py for your Django project:

INSTALLED_APPS = (
    ...
    'tinymce',
)

Add tinymce.urls to urls.py for your project:

urlpatterns = [
    ...
    path('tinymce/', include('tinymce.urls')),
    ...
]

Or with old-style regex url:

urlpatterns = [
    ...
    url(r'^tinymce/', include('tinymce.urls')),
    ...
]

In your code:

from django.db import models
from tinymce import HTMLField

class MyModel(models.Model):
    ...
    content = HTMLField('Content')

In Django Admin the widget is used automatically for all models that have HTMLField fields. If you are using TinyMCE 4 in your website forms, add form.media variable into your templates:

<!DOCTYPE html>
<html>
<head>
  ...
  {{ form.media }}
</head>
<body>
...
</body>
</html>

Documentation

http://romanvm.github.io/django-tinymce4-lite

License

MIT license. See LICENSE.txt

More Repositories

1

python-web-pdb

Web-based remote UI for Python's PDB debugger
Python
491
star
2

plugin.video.example

Very simple video plugin for Kodi mediacenter
Python
97
star
3

kodi.web-pdb

Web-based remote Python debugger for Kodi addons
Python
84
star
4

kodi.yatp

Torrent streaming video plugin for Kodi mediacenter
Python
47
star
5

script.module.pyxbmct

A GUI micro-framework for Kodi meidacenter addons
Python
46
star
6

WsgiBoostServer

Python WSGI/HTTP server written in C++
C++
32
star
7

sphinx_tutorial

Tutorial for documenting your Python code with Sphinx
Python
26
star
8

kodi.six

Python
20
star
9

service.addic7ed

Subtitles addon for Kodi Mediacenter
Python
20
star
10

PyXBMCt

A simple GUI framework for Kodi addons
15
star
11

pyxbmct.demo

Python
9
star
12

kodi.tvmaze

TVmaze scraper for Kodi
Python
8
star
13

romans_blog

My Django-based blog CMS
Python
7
star
14

next-episode-kodi

Python
6
star
15

SDLXLIFFlocker

C#
6
star
16

kodi.tvmaze.scrobbler

TV show scrobbler for TVmaze
Python
5
star
17

django-modeltranslation-xliff

XLIFF Exchange extension for django-modeltranslation
Python
4
star
18

py-xliff-converter

Python
4
star
19

kodi_repo

A repository for my Kodi addons
4
star
20

kodistubs-generator

Smarty
4
star
21

kodi.external.library

External Kodi Videolibrary Client
Python
3
star
22

TinyMCE4.spoiler

A spoiler plugin for TinyMCE 4
JavaScript
3
star
23

kodi.remote-pdb

Remote debugger for Kodi Python addons
Python
3
star
24

asyncore-wsgi

Simple asynchronous WSGI/WebSocket server
Python
2
star
25

TinyMCE4-Codesample

Alternative codesample and preview plugins for TinyMCE 4
JavaScript
2
star
26

sphinx-pydocsgen

Python
1
star