{ "info": { "author": "n37r06u3", "author_email": "n37r06u3@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Django CKEditor 5\n===\n\n# \u4ecb\u7ecd #\n\u672c\u9879\u76ee\u6574\u5408\u4e86\u65b0\u7248 [CKEditor 5](https://ckeditor.com/ckeditor-5/) \u5230Django. \u8001\u7248\u672c[django-ckeditor](https://github.com/django-ckeditor/django-ckeditor) \u4ecd\u7136\u5728\u4f7f\u7528[CKEditor 4](https://ckeditor.com/ckeditor-4/). \n\n\u6839\u636e [ckeditor.com](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migrate.html)\u5b98\u65b9\u8bf4\u660e\uff0cCKEditor 5\u662f\u4e00\u4e2a\u4f60\u6ca1\u6709\u7528\u8fc7\u7684\u8239\u65b0\u7248\u672c\u3002\n\n\u6574\u4f53\u4e0a\u4ecd\u7136\u4f7f\u7528 [django-ckeditor](https://github.com/django-ckeditor/django-ckeditor/tree/master/ckeditor)\u9879\u76ee\u7684\u67b6\u6784\u3002\u4e0d\u540c\u70b9\u662f\uff1a\n\n- `static/ckeditor5` \u5305\u542b\u6700\u65b0\u7684CKEditor 5\u7ecf\u5178\u7f16\u8f91\u5668\uff08\u7248\u672c\u4f1a\u968f\u65f6\u66f4\u65b0\uff0c\u5c3d\u91cf\u4e0e\u5b98\u65b9\u540c\u6b65\uff09\uff0c[CKEditor 5\u4e0b\u8f7d](https://ckeditor.com/ckeditor-5/download/).\n- \u79fb\u9664\u4e86`extraPlugins`\uff0c\u8001\u7684\u4e00\u4e9b\u63d2\u4ef6\uff0c\u5982\u4ee3\u7801\u63d2\u5165\u7f16\u8f91\uff0c\u76ee\u524d\u4e0d\u53ef\u4ee5\u4f7f\u7528\uff0c\u9700\u8981\u5176\u4ed6\u65b9\u6848\u3002\n- \u4fee\u6539\u4e86`static/ckeditor5/ckeditor-init.js`\u90e8\u5206\u4ee3\u7801\uff0c \u5728 `initialiseCKEditor` \u65b9\u6cd5\u91cc:\n + extraPlugins\u5904\u7406\u65b9\u6cd5\u4ee3\u7801\u88ab\u5220\u9664\n + CKEditor 5 \u4f7f\u7528 `ClassicEditor.create` \u6765\u521d\u59cb\u5316\u521b\u5efa\u7f16\u8f91\u5668\uff0c\u800c\u4e0d\u662f\u75284\u7684 `CKEDITOR.replace`\n\n# \u5b89\u88c5 #\npip install django-ckeditor5\n\n\u5347\u7ea7\npip install django-ckeditor5 -U \n\ngithub\npip install git+https://github.com/n37r06u3/django-ckeditor5\n\n# \u914d\u7f6e #\n\u6dfb\u52a0app\n```\nINSTALLED_APPS = [\n ...\n 'ckeditor5'\n]\n```\n\u57fa\u7840\u914d\u7f6e\n```\nCKEDITOR5_CONFIGS = {\n 'default': {\n 'toolbar': [\"undo\", \"redo\", \"bold\", \"italic\", \"blockQuote\", \"imageTextAlternative\", \"imageUpload\", \"heading\",\n \"imageStyle:full\", \"imageStyle:side\", \"link\", \"numberedList\", \"bulletedList\"],\n 'height': '300px',\n 'width': '100%',\n },\n}\n```\n\u6a21\u578b\u5b9a\u4e49\n```\nfrom ckeditor5.fields import RichTextField\n```\n\n\n\u6dfb\u52a0\u63d2\u4ef6\nhttps://www.npmjs.com/package/ckeditor5-code-block\n\n\n\n# \u6d4b\u8bd5 #\n\u4e0b\u8f7d\u6e90\u7801\u89e3\u538b\ncd ckeditor5_demo\n\npython manage.py migrate\n\npython manage.py createsuperuser\n\npython manage.py runserver\n\nhttp://127.0.0.1:8000/admin/\n\n# \u53c2\u8003 #\nhttps://github.com/django-ckeditor/django-ckeditor\n\nhttps://ckeditor.com/ckeditor-4/\n\nhttps://github.com/pancodia/django-ckeditor5\n\nhttps://ckeditor.com/ckeditor-5/\n\n# \u53d8\u66f4 #\n\n20190304 - v0.0.1 \u521d\u59cb\u5316\u9879\u76ee CKEditor 5\u96c6\u6210v11.0.1, \u65b0\u7248\u672cdjango2.1.7\u6d4b\u8bd5\u53ef\u7528\n\n20190305 - v0.0.2 \u6dfb\u52a0demo\n\n20190306 - v0.0.3 \u6dfb\u52a0\u5927\u5c0f\u914d\u7f6e\n\n20190306 - v0.0.4 ckeditor5-build-classic11.0.1\u5230v12.0.0 \u6dfb\u52a0 https://www.npmjs.com/package/ckeditor5-code-block\n\n# TODO #\n\u6dfb\u52a0\u56fe\u7247\u4e0a\u4f20\u63d2\u4ef6\n\n\u6dfb\u52a0html\u6e90\u7801\u67e5\u770b\u63d2\u4ef6\n\n\u5b8c\u5584\u5b89\u88c5\u8bf4\u660e\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/n37r06u3/django-ckeditor5", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-ckeditor5", "package_url": "https://pypi.org/project/django-ckeditor5/", "platform": "", "project_url": "https://pypi.org/project/django-ckeditor5/", "project_urls": { "Homepage": "https://github.com/n37r06u3/django-ckeditor5" }, "release_url": "https://pypi.org/project/django-ckeditor5/0.0.4/", "requires_dist": [ "django", "django-js-asset" ], "requires_python": "", "summary": "Django CKEditor 5 \u96c6\u6210", "version": "0.0.4" }, "last_serial": 4953405, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "3c2273cc29285bb5bf4c7f2c1183fd26", "sha256": "f194b05a76111c30868eccb641368ed0062305871f6ed0b2d02daaff39a5df00" }, "downloads": -1, "filename": "django_ckeditor5-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3c2273cc29285bb5bf4c7f2c1183fd26", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 921423, "upload_time": "2019-03-18T10:47:16", "url": "https://files.pythonhosted.org/packages/1b/0e/95718eef8fda2ed9406fb7f99b6ac84462e1578ba00500de3509f2eeb89e/django_ckeditor5-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7bc41d572f1cfe500b313cb1368d84a7", "sha256": "949775c125f8bceef96ab75f5544dff80c75a4d258ce1d2d038549a1911da777" }, "downloads": -1, "filename": "django-ckeditor5-0.0.3.tar.gz", "has_sig": false, "md5_digest": "7bc41d572f1cfe500b313cb1368d84a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 838041, "upload_time": "2019-03-06T07:34:12", "url": "https://files.pythonhosted.org/packages/61/6a/9d36469e405b2426963f1ce9106bdf05f0c0d94dce060744540d3345e928/django-ckeditor5-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "c3e797e50f54fb8e6487e38be1006d61", "sha256": "56725d9fde45cc7c161e6df38005949adf93fe7c44c31e808359b530c943f6c6" }, "downloads": -1, "filename": "django_ckeditor5-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c3e797e50f54fb8e6487e38be1006d61", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 921424, "upload_time": "2019-03-18T10:47:22", "url": "https://files.pythonhosted.org/packages/28/33/c57d87a6cb98e7467eaa95c37556998749f40d033d9531ac40d4bb7be3aa/django_ckeditor5-0.0.4-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3e797e50f54fb8e6487e38be1006d61", "sha256": "56725d9fde45cc7c161e6df38005949adf93fe7c44c31e808359b530c943f6c6" }, "downloads": -1, "filename": "django_ckeditor5-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c3e797e50f54fb8e6487e38be1006d61", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 921424, "upload_time": "2019-03-18T10:47:22", "url": "https://files.pythonhosted.org/packages/28/33/c57d87a6cb98e7467eaa95c37556998749f40d033d9531ac40d4bb7be3aa/django_ckeditor5-0.0.4-py2.py3-none-any.whl" } ] }