semvec/pypi-packages huggingface dataset:
django-tinymce-lite 0.0.2
TinyMCE widget for Django
License: MIT License
Keywords: django widget tinymce

django-tinymce-lite
===================

**django-tinymce-lite** is a Django application that contains a widget
to render a form field as a TinyMCE editor. This package provides same
namespace as
`django-tinymce <https://github.com/aljosa/django-tinymce/>`__, but
grabs latest stable tinymce static files from CDN.

|PyPi Version| |Build Status| |Test Coverage| |GitHub license|

Quickstart
==========

Install django-tinymce-lite:

.. code:: shell

    $ pip install django-tinymce-lite

Add tinymce to INSTALLED\_APPS in settings.py for your project:

.. code:: python

    INSTALLED_APPS = (
        ...
        'tinymce',
    )

In your code:

.. code:: python

    from django import forms

    from tinymce.widgets import TinyMCE

    from .models import FooBar

    class FooBarModelForm(forms.ModelForm):
        class Meta:
            model = FooBar
            fields = ['content1']
            widgets = {
                'content1': TinyMCE
            }

Configuration
=============

**django-tinymce-lite** is configured through django settings mechanism.
Following options are availiable:

.. code:: python

    # Url to tinymce init js
    TINYMCE_JS = '//cdn.tinymce.com/4/tinymce.min.js'

    # If you need pass extra static files for all tinymce widget
    TINYMCE_EXTRA_MEDIA = {
        'js': [],
        'css': {}
    }

    # Config, that passed to tinyMCE.init functions
    TINYMCE_CONFIG = {
        'selector': '.django-tinymce',
        'theme': 'modern',
        'relative_urls': False,
    }

For tinymce configuration, read more on
`site <https://www.tinymce.com/docs/configure/>`__.

Releases
========

Latest release is 1.0.0. It's support python 2.7, 3.4, 3.5, 3.6 and
Django >= 1.7.

Support and updates
===================

Use github issues
https://github.com/vanadium23/django-tinymce-lite/issues

License
=======

Originally written by Aljosa Mohorovic.

Much inspired by django-select2.

This program is licensed under the MIT License (see LICENSE)

.. |PyPi Version| image:: https://img.shields.io/pypi/v/django-tinymce-lite.svg
   :target: https://pypi.python.org/pypi/django-tinymce-lite/
.. |Build Status| image:: https://travis-ci.org/vanadium23/django-tinymce-lite.svg?branch=master
   :target: https://travis-ci.org/vanadium23/django-tinymce-lite/
.. |Test Coverage| image:: https://coveralls.io/repos/vanadium23/django-tinymce-lite/badge.svg?branch=master
   :target: https://coveralls.io/r/vanadium23/django-tinymce-lite/
.. |GitHub license| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://raw.githubusercontent.com/vanadium23/django-tinymce-lite/master/LICENSE.txt