{ "info": { "author": "Alisue", "author_email": "lambdalisue@hashnote.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "django-codemirror-widget\n=================================\n.. image:: https://img.shields.io/pypi/v/django-codemirror-widget.svg\n :target: https://pypi.python.org/pypi/django-codemirror-widget/\n :alt: Version\n\n.. image:: https://img.shields.io/pypi/status/django-codemirror-widget.svg\n :target: https://pypi.python.org/pypi/django-codemirror-widget/\n :alt: Status\n\n.. image:: https://img.shields.io/pypi/l/django-codemirror-widget.svg\n :target: https://pypi.python.org/pypi/django-codemirror-widget/\n :alt: License\n\n.. image:: https://img.shields.io/pypi/pyversions/django-codemirror-widget.svg\n :target: https://pypi.python.org/pypi/django-codemirror-widget/\n :alt: Python versions\n\n`Django `_ form widget library for using `CodeMirror `_ on ``Textarea``.\n\nInstallation\n-------------\n\n.. code:: sh\n\n pip install django-codemirror-widget\n\n\n\nUsage\n-----------\n\n1. First, you need to specified ``CODEMIRROR_PATH`` on ``settings.py``.\n ``CODEMIRROR_PATH`` is the URI of CodeMirror directory like ``CODEMIRROR_PATH = r\"javascript/codemirror\"``.\n If you don't specify it, it defaults to ``'codemirror'``.\n CodeMirror should be put there.\n\n2. Use ``codemirror.CodeMirrorTextarea`` widget for target Textarea like below:\n\n .. code:: python\n\n from django import forms\n from codemirror import CodeMirrorTextarea\n \n codemirror_widget = CodeMirrorTextarea(\n mode=\"python\",\n theme=\"cobalt\",\n config={\n 'fixedGutter': True\n },\n )\n document = forms.TextField(widget=codemirror_widget)\n\n\nSettings\n---------\nUse the followings in your ``settings.py``.\n\n``CODEMIRROR_PATH``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe URI of CodeMirror directory (your CodeMirror installation should live in ``{{ STATIC_URL }}/{{ CODEMIRROR_PATH }}``)\n\n``CODEMIRROR_MODE``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe default mode which may be a string or configuration map (DEFAULT: ``'javascript'``)\n\n``CODEMIRROR_THEME``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe default theme applied (DEFAULT: ``'default'``)\n\n``CODEMIRROR_CONFIG``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nBase mapping for the rest of the CodeMirror options (DEFAULT: ``{ 'lineNumbers': True }``)\n\n``CODEMIRROR_JS_VAR_FORMAT``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nA format string interpolated with the form field name to name a global JS variable that will hold the CodeMirror\neditor object. For example with ``CODEMIRROR_JS_VAR_FORMAT = \"%s_editor\"`` and a field named 'code', the JS variable\nname would be 'code_editor'. If ``CODEMIRROR_JS_VAR_FORMAT`` is None, no global variable is created (DEFAULT: None)", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/lambdalisue/django-codemirror-widget/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lambdalisue/django-codemirror-widget", "keywords": "django widget textarea codemirror", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-codemirror-widget", "package_url": "https://pypi.org/project/django-codemirror-widget/", "platform": "", "project_url": "https://pypi.org/project/django-codemirror-widget/", "project_urls": { "Download": "https://github.com/lambdalisue/django-codemirror-widget/tarball/master", "Homepage": "https://github.com/lambdalisue/django-codemirror-widget" }, "release_url": "https://pypi.org/project/django-codemirror-widget/0.5.0/", "requires_dist": null, "requires_python": "", "summary": "Django form widget library for using CodeMirror on textarea", "version": "0.5.0" }, "last_serial": 5626945, "releases": { "0.1rc1": [], "0.1rc2": [], "0.1rc3": [ { "comment_text": "", "digests": { "md5": "bca947e67fa2090ea795afbdd279f5e4", "sha256": "654ec974cdcde6a33b1fd59ac9c1d62aa856fb25f866d95af6d2f28ebd8fe748" }, "downloads": -1, "filename": "django_codemirror_widget-0.1rc3-py2.7.egg", "has_sig": false, "md5_digest": "bca947e67fa2090ea795afbdd279f5e4", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 406051, "upload_time": "2011-06-11T05:37:58", "url": "https://files.pythonhosted.org/packages/0b/f6/bc778ac8a5caba9f7595d166ca42259575c8394e26f5be08f921fdea8dcc/django_codemirror_widget-0.1rc3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "0b9177e7d80f22e9bd49c1940b9cfaea", "sha256": "3f90ea600f495365bc912d7c9039df382bf0ceabebde4e063c61cf12654f65de" }, "downloads": -1, "filename": "django-codemirror-widget-0.1rc3.tar.gz", "has_sig": false, "md5_digest": "0b9177e7d80f22e9bd49c1940b9cfaea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 362925, "upload_time": "2011-06-11T05:37:36", "url": "https://files.pythonhosted.org/packages/1b/4a/524ffd9f893249c849270200bfed6446c99be53a3811507f0e00b852d304/django-codemirror-widget-0.1rc3.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a6f13b6ac2dac0515da33086be6edb22", "sha256": "f329b3f78db3a22a10682bb9252381b10da45e42a0ac731a7fdff607e49e18b3" }, "downloads": -1, "filename": "django-codemirror-widget-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a6f13b6ac2dac0515da33086be6edb22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 362504, "upload_time": "2012-10-06T05:31:39", "url": "https://files.pythonhosted.org/packages/46/d4/90e365a087cc3c839e9e7adef5afeff5a53465625dfb34b52cf21ff44e09/django-codemirror-widget-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "f64c88751d58458b467a6db3e8cc9f91", "sha256": "2ebb7ccb863eeec1ac6bd3b2243287cfe237cfb37ebbeb4c8c026008544abe19" }, "downloads": -1, "filename": "django-codemirror-widget-0.3.0.tar.gz", "has_sig": false, "md5_digest": "f64c88751d58458b467a6db3e8cc9f91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3296, "upload_time": "2013-02-04T12:17:46", "url": "https://files.pythonhosted.org/packages/bd/92/1744afca6cf9074fd659fc81370ca37335777398517bb1d090b5e941891e/django-codemirror-widget-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "d5c8e419274882229011c2da1c8d063e", "sha256": "bd3092ad70a4b8746d70a251769946cdb0ca5f1bc710fc857cd0c98337c23280" }, "downloads": -1, "filename": "django-codemirror-widget-0.4.0.tar.gz", "has_sig": false, "md5_digest": "d5c8e419274882229011c2da1c8d063e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5417, "upload_time": "2014-05-15T10:06:58", "url": "https://files.pythonhosted.org/packages/fe/b8/d2c1566d850182ae7001d440b82c5bd994f97924c1e890b381cc9a9ab80f/django-codemirror-widget-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "ab64c6a33d317d9f1a6211d65c575cb7", "sha256": "4d24ef00c61677171117e7c8d49d8281cc08bd3fd6be6a4ea584def08edcb9b8" }, "downloads": -1, "filename": "django-codemirror-widget-0.4.1.tar.gz", "has_sig": false, "md5_digest": "ab64c6a33d317d9f1a6211d65c575cb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5449, "upload_time": "2016-09-14T04:59:16", "url": "https://files.pythonhosted.org/packages/d3/9b/7038890841690f1d8feb1e3b85ac32e7b87d4f3c53b5fb1ec0c4ef4b5b75/django-codemirror-widget-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "bc948b6ce21e4d7354147acc7865724a", "sha256": "a2f7facf299f3f51dff7227cc9850905b899e08485698d3f4fad110a7ad628be" }, "downloads": -1, "filename": "django-codemirror-widget-0.5.0.tar.gz", "has_sig": false, "md5_digest": "bc948b6ce21e4d7354147acc7865724a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6603, "upload_time": "2019-08-03T01:20:36", "url": "https://files.pythonhosted.org/packages/36/c4/cbb7865507104470fae886fb868a65e09a4345d30e60b47149e256f0f956/django-codemirror-widget-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bc948b6ce21e4d7354147acc7865724a", "sha256": "a2f7facf299f3f51dff7227cc9850905b899e08485698d3f4fad110a7ad628be" }, "downloads": -1, "filename": "django-codemirror-widget-0.5.0.tar.gz", "has_sig": false, "md5_digest": "bc948b6ce21e4d7354147acc7865724a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6603, "upload_time": "2019-08-03T01:20:36", "url": "https://files.pythonhosted.org/packages/36/c4/cbb7865507104470fae886fb868a65e09a4345d30e60b47149e256f0f956/django-codemirror-widget-0.5.0.tar.gz" } ] }