Closed webquest-nz closed 10 months ago
Following that tutorial requires highlighting empty text in order for the option to appear (see #9281 )
I tried that it is still not working for me. Here is my pip freeze.
anyascii==0.3.1 asgiref==3.5.2 backports.zoneinfo==0.2.1 beautifulsoup4==4.11.1 certifi==2022.9.24 charset-normalizer==2.1.1 Django==4.1.3 django-filter==22.1 django-modelcluster==6.0 django-permissionedforms==0.1 django-taggit==3.1.0 django-treebeard==4.5.1 djangorestframework==3.14.0 draftjs-exporter==2.1.7 et-xmlfile==1.1.0 html5lib==1.1 idna==3.4 l18n==2021.3 openpyxl==3.0.10 Pillow==9.3.0 pytz==2022.6 requests==2.28.1 six==1.16.0 soupsieve==2.3.2.post1 sqlparse==0.4.3 telepath==0.3 urllib3==1.26.13 wagtail==4.1.1 webencodings==0.5.1 Willow==1.4.1
I suspect this was likely the same issue as #9281, as far as I can see the stock button works as expected.
Issue Summary
I created this issue on stack overflow and no solutions.
The Wagtail example of using entities as given in this page of documentation isn't working for me. I am following the third example of using Entities which is supposed to create a button for stock price but no button is appearing for me in the rich text field in the admin editor. I have created a minimum reproducible example which demonstrates just this problem. https://github.com/kiwiheretic/stockentity. I am using Wagtail 4.1.1 which I understand is the latest version.
Steps to Reproduce
Using wagtail 4.1.1 follow the instructions for StockEntity as per https://docs.wagtail.org/en/stable/extending/extending_draftail.html#creating-new-entities. Also GitHub repository above.
Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?
Expected to see a stock button draftail editor. No such button appeared
Yes
Technical details
python --version
.Python 3.8
Django version: Look in your requirements.txt, or run
pip show django | grep Version
. Django>=4.1,<4.2Wagtail version: Look at the bottom of the Settings menu in the Wagtail admin, or run
pip show wagtail | grep Version:
.Wagtail 4.1.1
Various browsers