django-Tinymce4-lsu


Namedjango-Tinymce4-lsu JSON
Version 3.0 PyPI version JSON
download
home_pagehttps://github.com/romanvm/django-tinymce4-lite
SummaryA Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.
upload_time2023-01-11 03:56:11
maintainer
docs_urlNone
authorRoman Miroshnychenko (fork author)
requires_python
licenseMIT License
keywords django wysiwyg editor widget tinymce
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            django-tinymce4-lite
====================

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

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

.. image:: 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:

.. code-block:: python

  INSTALLED_APPS = (
      ...
      'tinymce',
  )

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

.. code-block:: python

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

Or with old-style regex ``url``:

.. code-block:: python

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

In your code:

.. code-block:: python

    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:

.. code-block:: django

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



Documentation
=============

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

License
=======

MIT license. See LICENSE.txt

.. _django-tinymce4: https://github.com/dani0805/django-tinymce4
.. _TinyMCE 4: https://www.tinymce.com/
.. _django-filebrowser: https://github.com/sehmaschine/django-filebrowser
.. _django-filebrowser-no-grappelli: https://github.com/smacker/django-filebrowser-no-grappelli
.. _TinyMCE docs: https://www.tinymce.com/docs/


Changelog
=========

1.8.0
-----
- Removed Python 2.7 support.
- Added support for Python 3.8, Django 2.2 and 3.0

1.7.5
-----
- Support translated strings in settings (merwok).
- Set TinyMCE localization language when rendering the widget instead of the
  widget class initialization (allows to set TinyMCE language depending on
  the web page locale).

1.7.4
-----
- Upgraded TinyMCE to v.4.9.2

1.7.3
-----
- Upgraded TinyMCE to v.4.8.3

1.7.2
-----
- Upgraded TinyMCE to v.4.8.0.
- Various fixes (maqmigh, ojiii, rvanlaar).

1.7.1
-----
- Upgraded TinyMCE to v.4.7.11

1.7.0
-----
- Upgraded TinyMCE to v.4.7.4
- Fixed using TinyMCE in non-admin forms.
- Fixed compatibility with ``django-filebrowser-no-grapelli``.
  This broke compatibility with ``django-filebrowser``
  (based on grapelli) until the latter adds support for TinyMCE 4.

1.6.0
-----
- Upgraded TinyMCE to v.4.7.2.
- Added compatibility with Django 2.0 (thomwiggers).
- Fixed dropped widget attributes in Django => 1.11 (bentrm).
- Fixed missing Changelog in ``sdist`` .gz distribution.

1.5.2
-----
- Fixed rendering TinyMCE widgets with multiple inline formsets in Django admin
  (se-bastiaan).
- Fixed running Django management commands with ``ManifestStaticFilesStorage`` and
  ``DEBUG = False`` (hopefully).
- Upgraded TinyMCE to v.4.6.7.

1.5.1
-----
- Fixed running collectstatic command with ``ManifestStaticFilesStorage`` and
  ``DEBUG = False``.

1.5.0
-----
- **Security**: protected spellchecker REST endpoint from CRSF.
- Implemented correct handling of TinyMCE widgets inside inline formsets
  in Django admin interface.
- Upgraded TinyMCE to v.4.6.6.

1.4.2
-----
- Upgraded TinyMCE to v.4.6.4.
- Fixed the default editor config.

1.4.1
-----
- Upgraded TinyMCE to v.4.6.2.
- Added text format selector to the default editor configuration.

1.4.0
-----
- Upgraded TinyMCE to v.4.6.0.

1.3.2
-----
- Fixed compatibility with Django v.1.11.

1.3.1
-----
- Upgraded TinyMCE to v.4.5.5.
- Fixed language file configuration for languages with country codes (Gagaro).
- Rendering of the TinyMCE 4 is now tested with Selenium/PhantomJS.

1.3.0
-----
- Upgraded TinyMCE to v.4.5.1.

1.2.0
-----
- Upgraded TinyMCE to v.4.4.3
- Added ``TINYMCE_ADDITIONAL_JS_URLS`` configuration option.

1.1.0
-----
- Upgraded TinyMCE to v.4.4.1.
- Added Django 1.10 to compatibility matrix.

1.0.0
-----
- Initial PyPI release.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/romanvm/django-tinymce4-lite",
    "name": "django-Tinymce4-lsu",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django wysiwyg editor widget tinymce",
    "author": "Roman Miroshnychenko (fork author)",
    "author_email": "provo1@lsu.edu",
    "download_url": "https://files.pythonhosted.org/packages/04/74/15f6f14ebbee3994bcd052d5f24120be7bf26cc5db073ef1097d7fa516fb/django-Tinymce4-lsu-3.0.tar.gz",
    "platform": "any",
    "description": "django-tinymce4-lite\n====================\n\n.. image:: https://travis-ci.org/romanvm/django-tinymce4-lite.svg?branch=master\n  :target: https://travis-ci.org/romanvm/django-tinymce4-lite\n.. image:: https://codecov.io/github/romanvm/django-tinymce4-lite/coverage.svg?branch=master\n  :target: https://codecov.io/github/romanvm/django-tinymce4-lite?branch=master\n.. image:: https://badge.fury.io/py/django-tinymce4-lite.svg\n  :target: https://badge.fury.io/py/django.tinymce4-lite\n\n**django-tinymce4-lite** is a reworked fork of `django-tinymce4`_.\nIt provides a fully functional `TinyMCE 4`_ editor widget that can be used\nin Django forms and models.\n\n.. image:: http://romanvm.github.io/django-tinymce4-lite/_images/screenshot.png\n\nThe application can use `django-filebrowser-no-grappelli`_ as a file manager\nfor TinyMCE 4 to insert images and file links into edited text.\n\n**Warning**: TinyMCE 4 is incompatible with TinyMCE 3. Read `TinyMCE docs`_\nfor more information about how to configure TimyMCE 4 editor widget.\n\n**Note**: This package includes the latest available version of TinyMCE 4 -\n4.9.2. Currently there are no concrete plans to support TinyMCE 5, and **if**\nit happens, it will be in a separate package with a different name.\n\nCompatibility\n-------------\n\n- **Python**: 3.5+\n- **Django**: 1.11+\n\nQuick Start\n===========\n\nInstall **django-tinymce4-lite**::\n\n  $ pip install django-tinymce4-lite\n\nAdd ``tinymce`` to ``INSTALLED_APPS`` in ``settings.py`` for your Django project:\n\n.. code-block:: python\n\n  INSTALLED_APPS = (\n      ...\n      'tinymce',\n  )\n\nAdd ``tinymce.urls`` to ``urls.py`` for your project:\n\n.. code-block:: python\n\n  urlpatterns = [\n      ...\n      path('tinymce/', include('tinymce.urls')),\n      ...\n  ]\n\nOr with old-style regex ``url``:\n\n.. code-block:: python\n\n  urlpatterns = [\n      ...\n      url(r'^tinymce/', include('tinymce.urls')),\n      ...\n  ]\n\nIn your code:\n\n.. code-block:: python\n\n    from django.db import models\n    from tinymce import HTMLField\n\n    class MyModel(models.Model):\n        ...\n        content = HTMLField('Content')\n\nIn Django Admin the widget is used automatically for all models that have\n``HTMLField`` fields. If you are using TinyMCE 4 in your website forms,\nadd ``form.media`` variable into your templates:\n\n.. code-block:: django\n\n  <!DOCTYPE html>\n  <html>\n  <head>\n    ...\n    {{ form.media }}\n  </head>\n  <body>\n  ...\n  </body>\n  </html>\n\n\n\nDocumentation\n=============\n\nhttp://romanvm.github.io/django-tinymce4-lite\n\nLicense\n=======\n\nMIT license. See LICENSE.txt\n\n.. _django-tinymce4: https://github.com/dani0805/django-tinymce4\n.. _TinyMCE 4: https://www.tinymce.com/\n.. _django-filebrowser: https://github.com/sehmaschine/django-filebrowser\n.. _django-filebrowser-no-grappelli: https://github.com/smacker/django-filebrowser-no-grappelli\n.. _TinyMCE docs: https://www.tinymce.com/docs/\n\n\nChangelog\n=========\n\n1.8.0\n-----\n- Removed Python 2.7 support.\n- Added support for Python 3.8, Django 2.2 and 3.0\n\n1.7.5\n-----\n- Support translated strings in settings (merwok).\n- Set TinyMCE localization language when rendering the widget instead of the\n  widget class initialization (allows to set TinyMCE language depending on\n  the web page locale).\n\n1.7.4\n-----\n- Upgraded TinyMCE to v.4.9.2\n\n1.7.3\n-----\n- Upgraded TinyMCE to v.4.8.3\n\n1.7.2\n-----\n- Upgraded TinyMCE to v.4.8.0.\n- Various fixes (maqmigh, ojiii, rvanlaar).\n\n1.7.1\n-----\n- Upgraded TinyMCE to v.4.7.11\n\n1.7.0\n-----\n- Upgraded TinyMCE to v.4.7.4\n- Fixed using TinyMCE in non-admin forms.\n- Fixed compatibility with ``django-filebrowser-no-grapelli``.\n  This broke compatibility with ``django-filebrowser``\n  (based on grapelli) until the latter adds support for TinyMCE 4.\n\n1.6.0\n-----\n- Upgraded TinyMCE to v.4.7.2.\n- Added compatibility with Django 2.0 (thomwiggers).\n- Fixed dropped widget attributes in Django => 1.11 (bentrm).\n- Fixed missing Changelog in ``sdist`` .gz distribution.\n\n1.5.2\n-----\n- Fixed rendering TinyMCE widgets with multiple inline formsets in Django admin\n  (se-bastiaan).\n- Fixed running Django management commands with ``ManifestStaticFilesStorage`` and\n  ``DEBUG = False`` (hopefully).\n- Upgraded TinyMCE to v.4.6.7.\n\n1.5.1\n-----\n- Fixed running collectstatic command with ``ManifestStaticFilesStorage`` and\n  ``DEBUG = False``.\n\n1.5.0\n-----\n- **Security**: protected spellchecker REST endpoint from CRSF.\n- Implemented correct handling of TinyMCE widgets inside inline formsets\n  in Django admin interface.\n- Upgraded TinyMCE to v.4.6.6.\n\n1.4.2\n-----\n- Upgraded TinyMCE to v.4.6.4.\n- Fixed the default editor config.\n\n1.4.1\n-----\n- Upgraded TinyMCE to v.4.6.2.\n- Added text format selector to the default editor configuration.\n\n1.4.0\n-----\n- Upgraded TinyMCE to v.4.6.0.\n\n1.3.2\n-----\n- Fixed compatibility with Django v.1.11.\n\n1.3.1\n-----\n- Upgraded TinyMCE to v.4.5.5.\n- Fixed language file configuration for languages with country codes (Gagaro).\n- Rendering of the TinyMCE 4 is now tested with Selenium/PhantomJS.\n\n1.3.0\n-----\n- Upgraded TinyMCE to v.4.5.1.\n\n1.2.0\n-----\n- Upgraded TinyMCE to v.4.4.3\n- Added ``TINYMCE_ADDITIONAL_JS_URLS`` configuration option.\n\n1.1.0\n-----\n- Upgraded TinyMCE to v.4.4.1.\n- Added Django 1.10 to compatibility matrix.\n\n1.0.0\n-----\n- Initial PyPI release.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A Django application that provides a fully functional TinyMCE 4 editor widget for models and forms.",
    "version": "3.0",
    "split_keywords": [
        "django",
        "wysiwyg",
        "editor",
        "widget",
        "tinymce"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3d45fef9b3ab2e3a4a6761cc6f0080dfe52b92f2c338468cd4ce695774fc7162",
                "md5": "5f177604fbd208a5c688bc44781d8a5b",
                "sha256": "0c27825b26cddaf5aac62ec2f75c23a42ace1cbcb7f7cea51aa30dd2f9e71b5f"
            },
            "downloads": -1,
            "filename": "django_Tinymce4_lsu-3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5f177604fbd208a5c688bc44781d8a5b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1157481,
            "upload_time": "2023-01-11T03:56:05",
            "upload_time_iso_8601": "2023-01-11T03:56:05.910206Z",
            "url": "https://files.pythonhosted.org/packages/3d/45/fef9b3ab2e3a4a6761cc6f0080dfe52b92f2c338468cd4ce695774fc7162/django_Tinymce4_lsu-3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "047415f6f14ebbee3994bcd052d5f24120be7bf26cc5db073ef1097d7fa516fb",
                "md5": "b223c7390b379e684d2cd790bd493e1e",
                "sha256": "5b634c5b559020572c4b97975e7fa74870665d06f05c0f42873ba04343d70389"
            },
            "downloads": -1,
            "filename": "django-Tinymce4-lsu-3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b223c7390b379e684d2cd790bd493e1e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 928379,
            "upload_time": "2023-01-11T03:56:11",
            "upload_time_iso_8601": "2023-01-11T03:56:11.816350Z",
            "url": "https://files.pythonhosted.org/packages/04/74/15f6f14ebbee3994bcd052d5f24120be7bf26cc5db073ef1097d7fa516fb/django-Tinymce4-lsu-3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-11 03:56:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "romanvm",
    "github_project": "django-tinymce4-lite",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": false,
    "requirements": [],
    "tox": true,
    "lcname": "django-tinymce4-lsu"
}
        
Elapsed time: 0.02982s