Take the 2-minute tour ×

I'm working on an ASP.NET MVC project which uses the MarkdownDeep Editor to add a rich editor on top of a basic markdown input textbox (very similar to the Stackoverflow editor window).

Generally it works great. However, in certain scenarios, I would like to disable the preview window. This is automatically generated below the textarea by MDD. Can this be disabled?

Just to be clear, I know I can use CSS to hide the preview. But on some devices it's slow and makes typing painful. I want to entirely turn off that feature. I don't see anything in the docs other than how to customize the preview.

Any ideas?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

In the docs it specifically mentions that it is recommended that you have the div preview already in your document because it will be created if it isn't found and consequently, could could a visible page refresh if any re-layout has to occur.

Note: the associated divs are all optional and if missing, the plugin will create them. However... you might experience the page jumping around during load if you do this. ie: it's recommended to explicitly include them.

Thus from the sounds of this, and that there doesn't appear to be any option to turn it off in the API page I would say no, it's not possible.

share|improve this answer
Thanks I was afraid of that. It definitely will create one (but potentially unstyled) if it's not there. Basically it does a jQuery search and if it doesn't find an mdd_preivew object, it does an append. –  Michael Kennedy Jun 26 '12 at 16:09
Did this answer your question? If so please mark it as the answer to help other people find it. Thanks. –  Joshua Hayes Dec 5 '12 at 12:05
Thanks. I guess it's an answer in as much as "it's not possible" is the answer. But thanks for the time. :) –  Michael Kennedy Dec 6 '12 at 21:42
add comment

Your Answer


