{ "info": { "author": "James Stevenson", "author_email": "james.m.stevenson at gmail dot com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: Other/Proprietary License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "Django-Redactor-Editor\n========================\n\n\nThis package helps integrate the `Redactor `_ Javascript WYSIWYG-editor in Django.\n\nInstallation\n----------------\n\n#. Pip install: ``pip install django-redactoreditor`` (or add the ``redactor`` directory to your Python path)\n#. Add the ``redactor`` application to your `INSTALLED_APPS `_ setting.\n\nUsage\n----------------\n\nThe redactor app provides a Django widget called ``RedactorEditor``. It is a drop-in replacement for any ``TextArea`` widget. Example usage::\n\n from django import forms\n from django.db import models\n\n from redactor.widgets import RedactorEditor\n\n class MyForm(forms.Form):\n about_me = forms.CharField(widget=RedactorEditor())\n\n\nYou can also customize any of the Redactor editor's `settings `_ when instantiating the widget::\n\n class MyForm(forms.Form):\n\n about_me = forms.CharField(widget=RedactorEditor(redactor_settings={\n 'autoformat': True,\n 'overlay': False\n }))\n\n\nDjango-redactor also includes a widget with some some customizations that make it function and look better in the Django admin::\n\n class MyAdmin(admin.ModelAdmin):\n formfield_overrides = {\n models.TextField: {'widget': AdminRedactorEditor},\n }\n\nFinally, you can connect a custom CSS file to the editable area of the editor::\n\n class MyForm(forms.Form):\n about_me = forms.CharField(widget=RedactorEditor(\n redactor_css=\"styles/text.css\")\n )\n\nPaths used to specify CSS can be either relative or absolute. If a path starts with '/', 'http://' or 'https://', it will be interpreted as an absolute path, and left as-is. All other paths will be prepended with the value of the ``STATIC_URL`` setting (or ``MEDIA_URL`` if static is not defined).\n\nFor the sake of convenience, there is also a form field that can be used that accepts the same inputs. This field can be used anywhere ``forms.CharField`` can and accepts the same arguments, but always renders a Redactor widget::\n\n from redactor.fields import RedactorField\n\n class MyForm(forms.Form):\n about_me = RedactorField(\n in_admin=True,\n redactor_css=\"styles/text.css\",\n redactor_settings={'overlay': True}\n )\n\njQuery\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe redactor javascript library requires jQuery 1.9 or better to function. By default, jQuery is included as part of the field and widget media. However, this can cause issues where other widgets or forms on a page are using a *different* version of jQuery. It is possible to exclude jQuery from the media of the redactor field and wdiget if you wish to handle JavaScript dependency management yourself::\n\n class MyForm(forms.Form):\n about_me = RedactorField(include_jquery=False)\n\n\nTemplating\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nIf you are using a redactor widget outside the admin, you'll need to be sure that you render `the form's media `_. Redactor widgets need to include some CSS and JavaScript to work properly::\n\n
\n {{ myform.media }}\n {{ myform.as_p }}\n \n
\n\nInternationalization\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nIf you wish to use Redactor in other languages, you only need to specify the ``lang`` setting. The correct javascript language files will be loaded automatically::\n\n class MyForm(forms.Form):\n\n about_me = forms.CharField(widget=RedactorEditor(redactor_settings={\n 'autoformat': True,\n 'lang': 'es',\n 'overlay': False\n }))\n\n\nDjango-Redactor is licensed under a `Creative Commons Attribution-NonCommercial 3.0 `_ license. However, the noncommercial restrictions of the license (e.g., Section 4(b)) are waived for any user who purchases a\nlegitimate commercial license to the redactor.js library. Open source users are still under the noncommercial clause, but legitimate Imperavi license holders are not.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mazelife/django-redactoreditor", "keywords": null, "license": "CC licence, see LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "django-redactoreditor", "package_url": "https://pypi.org/project/django-redactoreditor/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-redactoreditor/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mazelife/django-redactoreditor" }, "release_url": "https://pypi.org/project/django-redactoreditor/1.2.10/", "requires_dist": null, "requires_python": null, "summary": "Integrates the Redactor Javascript WYSIWYG editor with Django.", "version": "1.2.10" }, "last_serial": 1160063, "releases": { "1.2.10": [ { "comment_text": "", "digests": { "md5": "2bab8d61b26ede6b908a27614f3160f1", "sha256": "704544432e3f079be7970b01613cbf359daf908d87f0dc683148bcb485a7f40e" }, "downloads": -1, "filename": "django-redactoreditor-1.2.10.tar.gz", "has_sig": false, "md5_digest": "2bab8d61b26ede6b908a27614f3160f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210610, "upload_time": "2014-07-16T19:46:09", "url": "https://files.pythonhosted.org/packages/65/be/1607b1e425045f65776c226c3dae7d9a91af94f8d921a3e1b74267ec736f/django-redactoreditor-1.2.10.tar.gz" } ], "1.2.6": [ { "comment_text": "", "digests": { "md5": "04770855814082c8427d726b76a19d76", "sha256": "111933c1998132d42ccdbc398486ddfa85ef86a3ef147e79976a5c4ab9efcb43" }, "downloads": -1, "filename": "django-redactoreditor-1.2.6.macosx-10.8-x86_64.exe", "has_sig": false, "md5_digest": "04770855814082c8427d726b76a19d76", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 73170, "upload_time": "2014-04-24T21:02:04", "url": "https://files.pythonhosted.org/packages/4e/dc/1bd5ccada31d62107aac4bb660b5872a48b8a21eeab319965ebc34ae4ec0/django-redactoreditor-1.2.6.macosx-10.8-x86_64.exe" }, { "comment_text": "", "digests": { "md5": "6f6ac5d0b20d685ebfee62e0c0e737bf", "sha256": "b8a7cb4b6a67c30aef52e8d1a158cdf09b97ea7ea3a6448125b3ccfa2cf02e34" }, "downloads": -1, "filename": "django-redactoreditor-1.2.6.tar.gz", "has_sig": false, "md5_digest": "6f6ac5d0b20d685ebfee62e0c0e737bf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 208260, "upload_time": "2014-04-24T21:02:01", "url": "https://files.pythonhosted.org/packages/ed/ef/e92e4be9558f1cea4ba03f38c938781d33e5f26bac158cfe325f4ede96f7/django-redactoreditor-1.2.6.tar.gz" } ], "1.2.7": [ { "comment_text": "", "digests": { "md5": "b33fbe320e001efe2358aec8a99184f6", "sha256": "094e22f6119e9a40a9a41e93089e6d9f8ea5c620c35b0d12784605cce16d42e7" }, "downloads": -1, "filename": "django-redactoreditor-1.2.7.tar.gz", "has_sig": false, "md5_digest": "b33fbe320e001efe2358aec8a99184f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 208920, "upload_time": "2014-06-10T16:45:06", "url": "https://files.pythonhosted.org/packages/d6/aa/e45d48b59e258a235d3e23330176867801e72c75e867236344a7e3984636/django-redactoreditor-1.2.7.tar.gz" } ], "1.2.8": [ { "comment_text": "", "digests": { "md5": "a60613efc7f4ff508d98ea382f7a84d5", "sha256": "1ce96662ade90bd48d070bca92a6182ce9544b59b68eedb630f41bdd0713432c" }, "downloads": -1, "filename": "django-redactoreditor-1.2.8.tar.gz", "has_sig": false, "md5_digest": "a60613efc7f4ff508d98ea382f7a84d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 208944, "upload_time": "2014-07-13T16:56:06", "url": "https://files.pythonhosted.org/packages/3a/bf/f22b68cd6c66dcc89a2277d37eea5dc1b24f637442f341827178b4eebda7/django-redactoreditor-1.2.8.tar.gz" } ], "1.2.9": [ { "comment_text": "", "digests": { "md5": "80af34619e8080a1005ca04dd159fd0f", "sha256": "e8462ac9a8c6ac84a59dbe5fbf1ca4fc5b229631cb88c6c24583a76f24bbe62c" }, "downloads": -1, "filename": "django-redactoreditor-1.2.9.tar.gz", "has_sig": false, "md5_digest": "80af34619e8080a1005ca04dd159fd0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 208928, "upload_time": "2014-07-13T16:57:48", "url": "https://files.pythonhosted.org/packages/59/8b/8a1cb3a8f2124310798713ced98091b2eb2e03e7020e9fc3ca85c79b5069/django-redactoreditor-1.2.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2bab8d61b26ede6b908a27614f3160f1", "sha256": "704544432e3f079be7970b01613cbf359daf908d87f0dc683148bcb485a7f40e" }, "downloads": -1, "filename": "django-redactoreditor-1.2.10.tar.gz", "has_sig": false, "md5_digest": "2bab8d61b26ede6b908a27614f3160f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210610, "upload_time": "2014-07-16T19:46:09", "url": "https://files.pythonhosted.org/packages/65/be/1607b1e425045f65776c226c3dae7d9a91af94f8d921a3e1b74267ec736f/django-redactoreditor-1.2.10.tar.gz" } ] }