wmd-editor

Saving contents of the WMD Editor Control

I'm trying to implement the WMD editor used on StackOverflow to create some basic Wiki-style functionality. I'm up to the point where it's time to save to the database, but I'm unsure as to what I should be saving. If I save the produced HTML then I can retrieve and display it correctly, but on re-edit I'm faced with editing HTML, not ...

How can i hook up WMD editor on my django forms?

How can i hook-up WMD editor on to my django forms? ...

How do I get the value of WMD editor?

I am playing around with using the WMD Editor (http://wmd-editor.com/) in my site. I have a really simple question. When I am ready to submit the text to the server; how do I get the output of the editor? Something like this only returns the 'actual text that user typed in the textarea' var jtext = document.getElementById('myTextarea...

Use "Updated WMD Editor" in textareas loaded by AJAX Forms

We're trying to use Stackoverflow's excellent WMD / Markdown editor (http://blog.stackoverflow.com/2009/01/updated-wmd-editor/, http://github.com/derobins/wmd/tree/master) on a Symfony project. This works excellent on textareas without any AJAX involved. But when we have to include wmd.js first, and then later on user interaction (i.e. ...

Best version of the WMD to use in a project?

Hi. I'm interested in using the WMD editor in another project* but I'm not quite sure which version I should go with. From trawling through the Stack overflow blog I've found mention of a version on google code, plus cky's version on github, as well as derobin's, which appears to be a more up to date version. Then of course there are a...

wmd-editor breaks in IE8

We have recently started using WMD editor and found that in IE 8, it just goes on increasing the scroll size of the page by simply increasing the size of the textarea endlessly. The only option left is to close the browser after that causing lot of frustration. you can check wmd-editor demo here. does anybody know of any solution to this...

How to retrieve BOTH the markdown and html using the wmd-editor control?

I am using WMD-Editor and would look to store both the Markdown and HTML version of the text that is entered. I can only seem to get access to the output as Markdown OR HTML, but not both. I am using ASP.NET MVC and am trying to get something like the following code to work ... just don't know how to get at the HTML. Here is a snipp...

multiple wmd textareas on the same page

I'm trying to use the wmd markdown text editor for my site. I have two textareas on my page and I need the wmd editor for both. By default, it assigned it only to the first texarea, but how do I apply it to both textareas? Also, I always get an extra new line at the end of my markedup text that was saved by wmd. How can I prevent th...

Line breaks in WMD editor

Does anyone have any suggestions on how to handle line breaks with a WMD editor? When a user hits enter in the textarea I want it to equate to a line break in the html. Thanks... ...

wmd markdown code problem

hi all i m using wmd markdown editor in my project and i have a problem with code tags: if i enter a code snippet , markdown does not convert to html correctly it converts in "<p>" tags but if i enter some text else first and then code snippet it converts correctly in "<code>" tags is this a bug of wmd markdown editor? and how can i solv...

which wmd-editor repository to use

I read that the original wmd-editor is no longer maintained so there was an effort to reverse engineer it, hosted on github. However this version is not ready because it references a number of undefined functions, for example: processHeadings is not defined /static/js/lib/plugins/wmd/showdown.js Line 66 There is also a version ...

wmd editor (jquery version) over ajax forms

i'm trying wmd editor over ajax. here there is the bugged code wdm code is based on openlibrary fork on github it work very good without ajax. but when i try to display editor over ajax form it doesn't load. non ajax version produce this html: <div id="wmd-container"> <div id="wmd-button-bar"></div> <div id="wmd-button-...

Can't seem to save the markup version of the text using wmd-editor

I'm running into an issue when I am saving the context of textarea using the wmd-editor it keeps wanting to save it as html. I have the following code: The input elements... <p> <%= this.Html.TextArea("Body", topic.Body, new { @class = "big" })%> </p> The script to make the out put markdown... <script type="text/javascript"> ...

make wmd-editor not post html?

I have code similar to the below <form action="/u" method="post"> <div class="reply"> <input type="hidden" name="type" value="2"/> <input type="hidden" name="id" value="1"/> <input type="hidden" name="parentId" value="0"/> <textarea name="text" style="width: 500px; height: 200px;"></textarea><div class="rhs"><button>Post Comment</button...

Why are these divs overlapping?

I putting wmd on my website. After putting code in and giving it a spin i see this image below. How can i make the preview div not overlap with the textarea? -edit- the black is the css background of div wmd-preview some html <div id="wmd-editor" class="wmd-panel"><div id="wmd-button-bar"></div> <textarea id="wmd-input" name="body" ro...

Using WMD in an iFrame

Anyone know how to get WMD working in an iFrame? I'm using this version: http://github.com/ananthakumaran/wmd/ I think it's the "top." javascript path that's messing it up - but i'm not quite sure how to edit it such that it's pathing correctly. ...

WMD editor freezes IE7 for 3 seconds on load

Hello all, I am using the WMD editor's original code(not the stackoverflow version) since I need multiple of 'em on the same page and stackoverflow's version makes heavy use of element IDs internally since they aren't going to be having more than one editor instance per page. The code runs fin in FF 3.5, etc.. However, when I run it in ...

Custimizing styles of WMD Editor's Header

How can i custimize the styles of WMD editor's header similar to the one used here in stack overflow ...

align WMD editor's preview HTML with server-side HTML validation (e.g. no embedded javascript)

There are many SO questions (e.g. here and here) about how to do server-side scrubbing of Markdown produced by the WMD editor to ensure the HTML generated doesn't contain malicious script, like this: <img onload="alert('haha');" src="http://www.google.com/intl/en_ALL/images/srpr/logo1w.png" /> But I didn't find a good way to plug ...

display HTML content from database with formatting in it

Hi all, I have used wmd-editor in my cakephp v1.3 application. The config which I have written is as follows: wmd_options = { output: "HTML", lineLength: 40, buttons: "bold italic | link blockquote code image | ol ul heading hr", autostart: true }; When I submit the form ...