I have implemented the WMD control that StackOverflow uses into a project of mine, it almost works like a charm ... but ... when I save the changes to the database it is saving the HTML version and not the markdown version.
So where I have this in my text box:
**boldtext**
It is really saving this:
<b>boldtext</b>
Any ideas how ...
I am curious to do what happens when you edit a post on this site.
I am using wmd for my markdown editor, of course when I goto edit, I get the HTML it generated not the markdown like on stackoverflow. Now, is there a way I can store both? or is it reliable enough to simply convert the HTML back to markdown to show in the wmd editor?
...
Is it possible with the wmd editor to add a button to let the user upload an image to the web server and place the corresponding img markdown in the textbox? If not, will another good inplace editor do it? Context: I'm using asp.net mvc, C# and I am a true beginner with javascript.
...
I like the Stack Overflow comment UI a great deal and I'm looking into implementing the same thing on my own website. I looked at the code and it looks like the main tool here is WMD, with the JQuery TextArea Resizer playing a supporting role.
WMD converts Markdown into HTML on the client side. That's pretty nice because it helps out w...
At what stage does my input in the textarea change from being this raw text, and become HTML?
For example, say I indent 4 spaces
like this
Then the WMD Showdown.js will render it properly below this textarea I type in. But the text area still literally contains
like this
So is PHP server side responsible for translating all t...
In code, I sometimes see people specify constants in hex format like this:
const int has_nukes = 0x0001;
const int has_bio_weapons = 0x0002;
const int has_chem_weapons = 0x0004;
// ...
int arsenal = has_nukes | has_bio_weapons | has_chem_weapons; // all of them
if(arsenal &= has_bio_weapons){
std::cout << "BIO!!"
}
But it do...
I am trying to some-how set the valid HTML tags and attributes users would be able to use in WMD Editor in my site. For example, I want to forbid the user to directly set the font size, color, typeface and so on, which is trivial to do with the default settings typing something like:
<span style="font-size: 45px; color:#FF0000">Some int...
We're starting developer documentation for one of our projects, and I'd like to set it up as a hosted wiki.
There will be lots of code samples, and the WMD/Prettify combination used here on StackOverflow is the simplest way I've seen to enter structured text (with headings, etc.) combined with automatically formatted code blocks.
Doe...
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...
Hi folks,
To be clear, I'm referring to the usage of stackoverflow's forked WMD, not the original version from attacklab.
I'd like to use the forked version, however it seems that the div id's which are used by the script to identify the page elements to WMDify are hardcoded in wmd.js:66:
// A collection of the important regions on t...
Hi,
I am trying to implement WMD onto my website and was wondering how would I go about running showdown.js server side to convert markdown to HTML? (in order to store both in the DB)
I am using PHP...any tips would be helpful (never ran any sort of js from php before)
Thanks,
Andrew
...
Am using django and am implementing WMD on my site, am just wondering how do i convert the markdown syntax to HTML for display purposes, is there some sort of function i should call to do this conversion?
What is the best way to handle markdown ie. do i save the markdown as is to the database then parse it when displaying it or should i...
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. ...
This should be easy (at least no one else seems to be having a similar problem), but I can't see where it is breaking.
I'm storing Markdown'ed text in a database that is entered on a page in my app. The text is entered using WMD and the live preview looks correct.
On another page, I'm retrieving the markdown text and using Showdown.js ...
Hey!
I want to make WMD line dropping always apply - It does this on Stackoverflow but the default WMD doesn't! It requires two spaces after text to make a line drop work unless it is more than 1 line drop.
I've tried understanding WMD but it's all written in obfuscated code and hard to follow
Does anyone know about a fix for this?
T...
I'm sold on the WMD textarea and markdown, but I'd like to give the same features to my users too!
...
Hi,
it seem that WMD-Editor is posting HTML to the server instead of the markdown? How can i get it to send the Markdown?
...
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...
Hi,
Has anyone used wmd editor?
I am having a problem with the editor in a form. Its not being configured as the editor after setting up in a form. Only the text area is shown with no editing options. The form has already many controls and other scripting files included. I am using IE 7. Its working in another form which has only a tex...
Hello,
I work since 2 days on WMD & Markdown and i don't find THE solution for stock data with security. I would like users can post html/xml (with WMD) on my site. For the moment, I stock data in Markdown format but If I disabled JavaScript the user can push easy XSS. If I strip_tags or html_entities all data i loose the user html/xml...