Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


This is a script that will convert a standard textarea into a wysiwym editor
similar to what offers.

* jquery-1.4.4.js or higher.

1.) Copy the 'wysiwym' directory to the media location in your site directory.

2.) Include wysiwym.js, markdown.js and wysiwym.css to your site header.
    <script type='text/javascript' src='/media/js/wysiwym/wysiwym.js'></script>
    <script type='text/javascript' src='/media/js/wysiwym/markdown.js'></script>
    <link type='text/css' rel='stylesheet' href='/media/js/wysiwym/wysiwym.css'/>

3.) Hook in the script by calling .wysiwym() on the textarea element
    in your page. That's It!:
    $('#mytextarea').wysiwym(WysiwymMarkdown, {options});

The options argument to wysiwym is a Javascript object that knows about the
following attributes:

containerButton - jQuery element to place buttons; Default: undefined (auto-created).
containerHelp   - jQuery element to place help; Default: undefined (auto-created).
helpEnabled     - Set false to disable the help menu; Default: true.
helpToggle      - Set false to always show the help menu (disable toggle); Default: true.
helpToggleElem  - jQuery element to toggle help (makes <a> by default)
helpTextShow    - Toggle text to display when help is not visible; Default: 'show markup syntax'.
helpTextHide    - Toggle text to display when help is visible;  Default: 'hide markup syntax'.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.