django-markdownfield icon indicating copy to clipboard operation
django-markdownfield copied to clipboard

Proposal: preview mode

Open alienalien13 opened this issue 4 years ago • 3 comments

Would be great to preview. Since there is rendering included already, it doesn't sound hard to implement the preview feature. Seems to miss just a place(modal, whatever else) where this preview might be. WDYT? @benjaoming @dmptrluke @kpavlovsky

Otherwise thanks for the tool!

alienalien13 avatar Jun 10 '21 08:06 alienalien13

Yeah, I think it is awesome. I must agree, that I have to save the page and go see how it looks every time. A tab just like the one I am typing here on GH should be quite enough.

kostja-me avatar Jun 10 '21 09:06 kostja-me

If you use EasyMDE in your template, you'll have its preview built in. It's not hard to get going. However, maybe there's a way to get it set up as a form widget?

Edit: Nevermind...it already is 🤦‍♂️

iamjameswalters avatar Mar 01 '22 16:03 iamjameswalters

I'm lucky to not have been asked for a preview function for this. I imagine that you can implement it many ways depending on the need.

I use django-markdownfield in combination with a lot of other fields that will all display a combined result, therefore I can't use an isolated frontend-only preview function. So even if there was something in the app, I would maybe want to disable it.

benjaoming avatar Mar 05 '22 15:03 benjaoming