Skip to content

Django app providing text input and textarea widgets with emoji picker. Based on emoji-mart.

License

Notifications You must be signed in to change notification settings

wdr-data/django-emoji-picker

Repository files navigation

django-emoji-picker

Django app providing text input and textarea widgets with emoji picker. It's based on emoji-mart.

Screenshot

Screenshot

Usage

This package contains a Django app that provides two widgets:

  • EmojiPickerTextInput
  • EmojiPickerTextarea

Example

Installation

$ pip install django-emoji-picker

or

$ pipenv install django-emoji-picker

settings.py

INSTALLED_APPS = [
    ...,
    'emoji_picker',
]

<app>/admin/<model>.py (for use with Django Admin)

from emoji_picker.widgets import EmojiPickerTextInputAdmin, EmojiPickerTextareaAdmin


class YourModelForm(forms.ModelForm):
    short_text = forms.CharField(widget=EmojiPickerTextInputAdmin)
    long_text = forms.CharField(widget=EmojiPickerTextareaAdmin)

Building from source

$ yarn
$ yarn build