{"id":13734172,"url":"https://github.com/django-ace/django-ace","last_synced_at":"2025-05-08T10:31:07.426Z","repository":{"id":3196261,"uuid":"4229352","full_name":"django-ace/django-ace","owner":"django-ace","description":"Django-ace-editor is an implementation of the ajax.org Ace editor as a form widget.","archived":false,"fork":false,"pushed_at":"2025-03-25T16:26:43.000Z","size":12897,"stargazers_count":138,"open_issues_count":2,"forks_count":58,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-21T09:05:05.442Z","etag":null,"topics":["ace-editor","django","python"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"abuiles/borrowers-backend","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/django-ace.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-05-04T21:30:40.000Z","updated_at":"2025-03-25T16:26:46.000Z","dependencies_parsed_at":"2024-06-18T16:48:30.736Z","dependency_job_id":"5f046e89-504c-4e53-933c-9ecef2da54cb","html_url":"https://github.com/django-ace/django-ace","commit_stats":{"total_commits":74,"total_committers":17,"mean_commits":4.352941176470588,"dds":0.5675675675675675,"last_synced_commit":"58262f12b1bc22df211480652b1f4d0ce359c6da"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-ace%2Fdjango-ace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-ace%2Fdjango-ace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-ace%2Fdjango-ace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-ace%2Fdjango-ace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/django-ace","download_url":"https://codeload.github.com/django-ace/django-ace/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045657,"owners_count":21845744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ace-editor","django","python"],"created_at":"2024-08-03T03:00:53.200Z","updated_at":"2025-05-08T10:31:07.419Z","avatar_url":"https://github.com/django-ace.png","language":"CSS","funding_links":[],"categories":["Third-Party Packages"],"sub_categories":["Editors"],"readme":"==========\ndjango-ace\n==========\n\n\nUsage\n=====\n\n::\n\n    from django import forms\n    from django_ace import AceWidget\n\n    class EditorForm(forms.Form):\n        text = forms.CharField(widget=AceWidget(width=None, height=None))\n\nSyntax highlighting and static analysis can be enabled by specifying the\nlanguage::\n\n    class EditorForm(forms.Form):\n        text = forms.CharField(widget=AceWidget(mode='css'))\n\nThemes are also supported::\n\n    class EditorForm(forms.Form):\n        text = forms.CharField(widget=AceWidget(mode='css', theme='twilight'))\n\nAll options, and their default values, are::\n\n    class EditorForm(forms.Form):\n        text = forms.CharField(widget=AceWidget(\n            mode=None,  # try for example \"python\"\n            theme=None,  # try for example \"twilight\"\n            wordwrap=False,\n            width=\"500px\",  # Deprecated, pass None and use CSS\n            height=\"300px\",  # Deprecated, pass None and use CSS\n            minlines=None,\n            maxlines=None,\n            showprintmargin=True,\n            showinvisibles=False,\n            usesofttabs=True,\n            tabsize=None,\n            fontsize=None,\n            toolbar=True,\n            readonly=False,\n            showgutter=True,  # To hide/show line numbers\n            behaviours=True,  # To disable auto-append of quote when quotes are entered\n            useworker=True,\n            extensions=None,\n            basicautocompletion=False,\n            liveautocompletion=False,\n        ))\n\n\nFor a ``ModelForm``, for example in Django admin, it can be used like this::\n\n    class PageForm(forms.ModelForm):\n        class Meta:\n            model = Page\n            fields = (\"title\", \"body\")\n            widgets = {\n                \"body\": AceWidget(\n                    mode=\"markdown\", theme=\"twilight\", width=None, height=None\n                ),\n            }\n\n    class PageAdmin(admin.ModelAdmin):\n        form = PageForm\n\n\nInstall\n=======\n\n1. Install using pip::\n\n    pip install django_ace\n\n2. Update ``INSTALLED_APPS``::\n\n    INSTALLED_APPS = (\n        # ...\n        'django_ace',\n    )\n\n\nExample Project\n===============\n\nThere's an example project included in the source, to try it do::\n\n    cd example/\n    python -m venv .venv\n    source .venv/bin/activate\n    pip install -e ..\n    ./manage.py migrate\n    ./manage.py runserver\n\nThen browser to ``http://localhost:8000``.\n\n\nChange log\n==========\n\nv1.39.1\n-------\n\n- Update ACE editor to version v1.39.1.\n\nAdd a `useStrictCSP` option.\n\n\nv1.38.0\n-------\n\n- Update ACE editor to version v1.38.\n\nThe ``width`` and ``height`` arguments (which sets the HTML ``style``\nattribute) are starting a slow change of their default\nvalues. Starting from this version do not rely in their default\narguments, give them explicitly!\n\nThey are changing from ``width=\"500px\", height=\"300px\"`` (setting the\nHTML ``style`` argument) to ``width=None, height=None`` (relying on\nthe CSS).\n\nThe default CSS uses ``width: 500px; height: 300px``, so changing from\nno ``width`` and no ``height`` to ``width=None, height=None`` is an\neasy correct move.\n\nIf you need custom size, prefer using ``width=None, height=None`` (the\nfuture default values) and use CSS to customize the size, this permits\nmore secure CSP rules.\n\n\nv1.37.5\n-------\n\n- Update ACE editor to version v1.37.5.\n- Use minified and non-conflict ACE instead of basic.\n- Expose two new options: enablebasicautocompletion and enableliveautocompletion.\n\nv1.36.2\n-------\n\n- Update ACE editor to version v1.36.2.\n\nv1.32.4\n-------\n\n- Expose useworker, contributed by @mounirmesselmeni.\n\nv1.32.3\n-------\n\n- Update ACE editor to version v1.32.3.\n\nv1.32.0\n-------\n\n- Update ACE editor to version v1.32.0.\n- Expose extensions, contributed by @okaycj.\n\nv1.31.1\n-------\n\n- Update ACE editor to version v1.31.1.\n\nv1.26.0\n-------\n\n- Update ACE editor to version v1.26.0.\n\nv1.24.1\n-------\n\n- Update ACE editor to version v1.24.1.\n\nv1.23.4\n-------\n\n- Update ACE editor to version v1.23.4.\n\nv1.22.1\n-------\n\n- Update ACE editor to version v1.22.1.\n\nv1.19.0\n-------\n\n- Update ACE editor to version v1.19.0.\n\nv1.15.4\n-------\n\n- Added CSS to work with new admin in Django 4.2. Now you can use `width=\"100%\"` without breaking the layout.\n\nv1.15.3\n-------\n\n- Update ACE editor to version v1.15.3.\n\nv1.14.0\n-------\n\n- Update ACE editor to version v1.14.0.\n- Follow ACE version numbers.\n\nv1.0.13\n-------\n\n- Update ACE editor to version v1.11.2.\n\n\nv1.0.12\n-------\n\n- Update ACE editor to version v1.5.0.\n\nv1.0.11\n-------\n\n- Support Grappelli inlines.\n\n\nv1.0.10\n-------\n\n- FIX JavaScript error when using ``JavaScriptCatalog``.\n\n\nv1.0.9\n------\n\n- New widget option ``showgutters`` to hide line numbers.\n- New widget option ``behaviours`` to avoid auto-insert of quotes.\n\n\nv1.0.8\n------\n\n- New widget option ``readonly``.\n- Update ACE editor to version v1.4.12.\n\n\nv1.0.7\n------\n\n- New widget option ``toolbar``.\n- Update ACE editor to version v1.4.8.\n\n\nv1.0.6\n------\n\n- New widget option ``fontsize``.\n- Update ACE editor to version v1.4.7.\n\n\nv1.0.5\n------\n\n- New widget option ``tabsize``.\n- Upgrade ACE editor to version v1.4.2.\n\n\nv1.0.4\n------\n\n- Update Django compatibility to ``\u003e1.11,\u003c=2.1``\n- New widget options ``minLines``, ``maxLines``, ``showinvisibles``, ``usesofttabs``.\n- Upgrade ACE editor to version v1.4.0.\n- Updated example for Django 1.11\n- PEP8 improvements\n\nv1.0.2\n------\n\n- Upgrade ACE editor to version 1.1.8\n- Add support for showprintmargin\n\nv1.0.1\n------\n\n- Add support for Django 1.7 by removing deprecated imports.\n\nv1.0.0\n------\n\n- Initial release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-ace%2Fdjango-ace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjango-ace%2Fdjango-ace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-ace%2Fdjango-ace/lists"}