Open Library branch of WMD.
#1 Compare This branch is 1 commit behind internetarchive:master.
Permalink
Failed to load latest commit information.
images
License.txt Reset to revision 102389b. Jun 9, 2010
Makefile generate jquery.wmd.js and jquery.wmd.min.js by combining all js files Dec 10, 2009
Readme.md Reset to revision 102389b. Jun 9, 2010
Uservoice bugs.txt
jquery-wmd-plugin.js remove log messages Jan 21, 2010
jquery.wmd.js
jquery.wmd.min.js Reset to revision 102389b. Jun 9, 2010
jsmin.py
pasteme.txt Added images, HTML test file, pastable markup Jan 2, 2009
showdown.js
wmd-test.html
wmd.css allow customizing dialog messages and help links Dec 10, 2009
wmd.js Reset to revision 102389b. Jun 9, 2010

Readme.md

WMD: The Wysiwym Markdown Editor

Introduction

This is the branch of wmd for Open Library, forked from the Stackoverflow branch of wmd.

Major Changes

  • Explicit function call is required to enable WMD editor for a textarea
  • Can work with multiple textareas in the same page
  • jquery plugin to simplify the usage

How to use

Example using jquery plugin:

<html>
    <head>
        <title>WMD Example using jquery</title>
        <link rel="stylesheet" type="text/css" href="wmd.css"/>

        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
        <script type="text/javascript" src="jquery.wmd.min.js"></script>
    </head>
    <body>
        <h1>WMD Example using jquery</h1>
        <div>
            <textarea id="notes"/>
        </div>

        <script type="text/javascript">
            $().ready(function() {
               $("#notes").wmd(); 
            });
        </script>
    </body>
</html>

Example without using jquery:

<html>
    <head>
        <title>WMD Example</title>

        <link rel="stylesheet" type="text/css" href="wmd.css"/>

        <script type="text/javascript" src="wmd.js"></script>
        <script type="text/javascript" src="showdown.js"></script>
    </head>
    <body>
        <h1>WMD Example</h1>

        <div>
            <div id="notes-button-bar"/>
            <textarea id="notes"/>
            <div id="notes-preview"/>
        </div>

        <script type="text/javascript">
            setup_wmd({
                "input": "notes",
                "button_bar": "notes-button-bar",
                "preview": "notes-preview",
            });
        </script>
    </body>
</html>

License

WMD Editor is licensed under MIT License.