{ "info": { "author": "Alex Gleason", "author_email": "alex@alexgleason.me", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Wagtail Emoji :tada:\n====================\n:clap: Add [NotoEmoji](https://github.com/googlei18n/noto-emoji) icons to StreamField. :bomb: :gun: :smoking: :knife:\n\n![Screenshot](screenshot.png)\n\n:warning: **IMPORTANT: JUST BECAUSE YOU CAN DOESN'T MEAN YOU SHOULD.**\n\nInstall\n-------\n\n pip install wagtailemoji\n\nThen add `wagtailemoji` to your installed apps.\n\nUsage\n-----\n### StreamField\nAdd emoji to StreamField [the regular way](http://docs.wagtail.io/en/latest/topics/streamfield.html#basic-block-types), just set `icon=\"emoji-something\"`. Reference [the full list](https://github.com/alexgleason/wagtailemoji/blob/master/wagtailemoji/static_src/wagtailemoji/scss/wagtailemoji.scss).\n\n### wagtailmodeladmin\n[wagtailmodeladmin](https://github.com/rkhleics/wagtailmodeladmin) is supported if you're using Wagtail 1.4 or above. Similar to StreamField, just set `icon=\"emoji-something\"` on your menu item.\n\n### Hallo plugins\nYou can use emoji on custom Hallo buttons by setting the `icon` option to `icon icon-emoji-something`.\n\n```javascript\nbutton.hallobutton({\n label: \"Skull\",\n icon: 'icon icon-emoji-skull',\n});\n```\n\n### Other parts of the admin\nYou can include icons anywhere in the admin with:\n\n```html\n\n```\n\nIn Wagtail 1.3.x and below you can only use icons on the page editor screen.\n\n### On the front-end\nYou can also import this on the front-end, if you want.\n\n```html\n{% load staticfiles %}\n\n\n```\n\nThen include icons anywhere on the front-end with:\n\n```html\n\n```\n\n### Using wagtailemoji as an optional dependency\nIf you want to distribute a Wagtail plugin with emoji, you can use this package as an optional dependency by checking if it's installed in Django, and falling back otherwise.\n\n```python\nfrom django.conf import settings\nfrom wagtail.wagtailcore.blocks import StructBlock\n\n\nclass BlockquoteBlock(StructBlock):\n quote = TextBlock()\n author = TextBlock()\n\n class Meta:\n if 'wagtailemoji' in settings.INSTALLED_APPS:\n icon = 'emoji-skull'\n```\n\n(in this case, the fallback is to do nothing)\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alexgleason/wagtailemoji", "keywords": "development", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "wagtailemoji", "package_url": "https://pypi.org/project/wagtailemoji/", "platform": "", "project_url": "https://pypi.org/project/wagtailemoji/", "project_urls": { "Homepage": "https://github.com/alexgleason/wagtailemoji" }, "release_url": "https://pypi.org/project/wagtailemoji/1.0.2/", "requires_dist": [ "Django (>=1.7.1)", "wagtail (>=1.4.0)" ], "requires_python": "", "summary": "Add emoji to StreamField.", "version": "1.0.2" }, "last_serial": 3551355, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "76988c2ed07a5088928771998647aeea", "sha256": "b5aa1433103e596ad199f92273dc2b99a8780e99025bd93d3d0b9363204ced49" }, "downloads": -1, "filename": "wagtailemoji-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "76988c2ed07a5088928771998647aeea", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 306436, "upload_time": "2016-06-10T21:03:20", "url": "https://files.pythonhosted.org/packages/c1/d3/0f3c3dd86a14ea961c3b72dbee576b4cf2336ff8818466d3f6b32f05d300/wagtailemoji-1.0.0-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "29947d46ab29757ff06c0cde7136fd45", "sha256": "77d7ba0e4f650f03f08442752e92a24b1581677b9e5f3cc33b21387613eb3037" }, "downloads": -1, "filename": "wagtailemoji-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "29947d46ab29757ff06c0cde7136fd45", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 306531, "upload_time": "2018-02-04T21:57:10", "url": "https://files.pythonhosted.org/packages/9d/6c/eb97244ced56658becea740d74e1b81d13c8479f3e9a57db8acfd3e8e447/wagtailemoji-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff20913ff5612cd1789570bd109fc83d", "sha256": "a739f915e6a093a3c16515db9115d85e1c913a48e978df54adfdfb30b8c800e8" }, "downloads": -1, "filename": "wagtailemoji-1.0.2-py3.5.egg", "has_sig": false, "md5_digest": "ff20913ff5612cd1789570bd109fc83d", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 305465, "upload_time": "2018-02-04T21:57:12", "url": "https://files.pythonhosted.org/packages/2a/9e/1deb5ec21bd2d6ce1defd843be3699aff98ab4713bd8a59dfed19812229c/wagtailemoji-1.0.2-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "8fc6206c911c9b82701d9e0d09518da3", "sha256": "4c33bbd6fec47392ea5b65d7c91a23caa6aebcfc0d003b4a78dd47ed1ec82c0f" }, "downloads": -1, "filename": "wagtailemoji-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8fc6206c911c9b82701d9e0d09518da3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 305137, "upload_time": "2018-02-04T21:57:15", "url": "https://files.pythonhosted.org/packages/67/25/4fe63529205b1f74aca4a6be3d81f3ab35438bbd3dab6e15aad3338d0e1e/wagtailemoji-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "29947d46ab29757ff06c0cde7136fd45", "sha256": "77d7ba0e4f650f03f08442752e92a24b1581677b9e5f3cc33b21387613eb3037" }, "downloads": -1, "filename": "wagtailemoji-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "29947d46ab29757ff06c0cde7136fd45", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 306531, "upload_time": "2018-02-04T21:57:10", "url": "https://files.pythonhosted.org/packages/9d/6c/eb97244ced56658becea740d74e1b81d13c8479f3e9a57db8acfd3e8e447/wagtailemoji-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff20913ff5612cd1789570bd109fc83d", "sha256": "a739f915e6a093a3c16515db9115d85e1c913a48e978df54adfdfb30b8c800e8" }, "downloads": -1, "filename": "wagtailemoji-1.0.2-py3.5.egg", "has_sig": false, "md5_digest": "ff20913ff5612cd1789570bd109fc83d", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 305465, "upload_time": "2018-02-04T21:57:12", "url": "https://files.pythonhosted.org/packages/2a/9e/1deb5ec21bd2d6ce1defd843be3699aff98ab4713bd8a59dfed19812229c/wagtailemoji-1.0.2-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "8fc6206c911c9b82701d9e0d09518da3", "sha256": "4c33bbd6fec47392ea5b65d7c91a23caa6aebcfc0d003b4a78dd47ed1ec82c0f" }, "downloads": -1, "filename": "wagtailemoji-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8fc6206c911c9b82701d9e0d09518da3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 305137, "upload_time": "2018-02-04T21:57:15", "url": "https://files.pythonhosted.org/packages/67/25/4fe63529205b1f74aca4a6be3d81f3ab35438bbd3dab6e15aad3338d0e1e/wagtailemoji-1.0.2.tar.gz" } ] }