torchbox / wagtail-markdown

Markdown support for Wagtail
zlib License
198 stars 66 forks source link

Markdown field in Wagtail Admin 3.0 #100

Closed thinkingcomputing closed 2 years ago

thinkingcomputing commented 2 years ago

Issue Summary

I use wagtail markdown. I've recently upgraded my sites to Wagtail 3.0.1. If I use the admin to edit my page content the wagtail markdown field is blank until I click on the empty box which is when it then appears.

Steps to Reproduce

  1. Use admin to edit a page that has a wagtail markdown field.
  2. It is blank for me until I click on the empty field

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Technical details

zerolab commented 2 years ago

This has to do with Wagtail 3.0+ dropping the use of Bootstrap JS Tabs. So https://github.com/torchbox/wagtail-markdown/blob/main/src/wagtailmarkdown/static/wagtailmarkdown/js/easymde.attach.js#L43 no longer kicks in

zerolab commented 2 years ago

@thinkingcomputing will close this as a duplicate of #98 but will aim to fix this today

zerolab commented 2 years ago

I've released v0.9.0 which should fix this.