Vivek
Vivek

Reputation: 4636

From where can I download the WMD editor?

I would like to add WMD editor to my website, but I do not find the source code of it anywhere. Where is it?

Upvotes: 1

Views: 5608

Answers (2)

Alex K.
Alex K.

Reputation: 175826

The original project is; http://code.google.com/p/wmd/ (dead main site).
There is also the Stack Overflow version here; http://code.google.com/p/pagedown/.

Upvotes: 2

Radheshyam Nayak
Radheshyam Nayak

Reputation: 1068

Search for the function makeSpritedButtonRow in wmd.js fils (around line 913).

Let us say if you do not want the boldButton then comment the lines containing the "boldButton".

Example:

        var boldButton = document.createElement("li");
        boldButton.className = "wmd-button";
        boldButton.id = "wmd-bold-button";
        boldButton.title = "Strong <strong> Ctrl+B";
        boldButton.XShift = "0px";
        boldButton.textOp = command.doBold;
        setupButton(boldButton, true);
        buttonRow.appendChild(boldButton);

comment all the above line and your boldButton is gone.......

I have downloaded my copy of WMD here.

Upvotes: 3

Related Questions