onepill / django-simplemde

Use markdown editor https://github.com/sparksuite/simplemde-markdown-editor in django project
32 stars 15 forks source link

Not showing editor in forms. #3

Closed Eraldo closed 8 years ago

Eraldo commented 8 years ago

By default the field works nicely in the admin. In a form it shows as a plain Textfield.

The browser console reports: simplemde.init.js:1 Uncaught ReferenceError: django is not defined

Any ideas?

onepill commented 8 years ago

Hi @Eraldo Sorry, the description was not clear enough, this project is only working with django admin right now, however your suggestion is good, will make it work from normal form as well.

Thanks

onepill commented 8 years ago

@Eraldo have fixed this issue, and pushed, please update to version 0.0.5, and make sure you have jQuery imported in the page.

Eraldo commented 8 years ago

@onepill thanks that sounds great.. I'll check it out in a minute. I tried to do it myself for a couple of hours.. I ended up making it work in the admin and break in my CBGVs or.. making it work there and break the admin. sigh So thank's a lot.

Eraldo commented 8 years ago

You did not push to pypi yet, did you? Update: You did. :D (was still my cache)

Eraldo commented 8 years ago

✓ Works great!