Hashify Editor turns any textarea
into a capable Markdown editor. It's
similar to John Fraser's wmd, but more modular and much lighter weight.
Turns a textarea
into a Markdown editor.
Hashify.editor(id [, preview [, callback]])
The id
of a textarea
, or a textarea
node.
Boolean which determines whether the "preview" link is included. Defaults to
true
.
Function to be invoked every time Hashify Editor handles an event. Within the
function, this
refers to the textarea
. Hashify, for example, uses a
callback to update the URL with each keystroke.
Hashify.editor(editor, false, function () {
setLocation(Hashify.encode(this.value));
});
Returns the Base64-encoded representation of a binary input string.
Hashify.encode(text)
Returns the binary representation of a Base64-encoded input string.
Hashify.decode(text)