Question

I'm using wyswim editor markitup from here: http://markitup.jaysalvat.com/

The problem is I need to press a button to preview the content.

I want to add live preview as I type in the content. Something like what stackoverflow does.

Était-ce utile?

La solution

This is something you will want to do on the client-side and not on the server (as mentioned above). Also, WYSIWYM stands for What You See is What You Mean - not at all what MarkItUp! is - http://en.wikipedia.org/wiki/WYSIWYM.

You might have more luck implementing an editor with this feature baked in - though I'm sure it wouldn't be too hard to add live preview yo MarkItUp! - such as EpicEditor (click to edit in full screen) http://epiceditor.com/

Autres conseils

Not with pure PHP. PHp is server side and you are looking for client side, most likely JavaScript, Flash or Java based. You can combine these two bo doing JavaScript async requests (aka AJAX) to the server and updating your preview on key stroke

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top