diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2010-01-27 17:56:29 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2010-01-27 17:56:29 -0500 |
commit | e6844fb16242c2bb00d5cd131834b488f62d0b78 (patch) | |
tree | 93cde39ad3eafc1e320726402e801fe4b92048b9 /admin/scripts/markitup/index.html | |
parent | e2f1c576b3c86cf3c1855456bd1097169a9234fe (diff) | |
download | bayonetcms-e6844fb16242c2bb00d5cd131834b488f62d0b78.tar.gz |
Moved markitup to the wrong location. Fixing.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2.1@476 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin/scripts/markitup/index.html')
-rw-r--r-- | admin/scripts/markitup/index.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/admin/scripts/markitup/index.html b/admin/scripts/markitup/index.html new file mode 100644 index 0000000..4049448 --- /dev/null +++ b/admin/scripts/markitup/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +<title>markItUp! Universal markup editor</title> +<link rel="stylesheet" type="text/css" href="images/style.css" /> +<!-- jQuery --> +<script type="text/javascript" src="jquery.pack.js"></script> +<!-- markItUp! --> +<script type="text/javascript" src="markitup/jquery.markitup.pack.js"></script> +<!-- markItUp! toolbar settings --> +<script type="text/javascript" src="markitup/sets/default/set.js"></script> +<!-- markItUp! skin --> +<link rel="stylesheet" type="text/css" href="markitup/skins/markitup/style.css" /> +<!-- markItUp! toolbar skin --> +<link rel="stylesheet" type="text/css" href="markitup/sets/default/style.css" /> +</head> +<body> +<script type="text/javascript"> +<!-- +$(document).ready(function() { + // Add markItUp! to your textarea in one line + // $('textarea').markItUp( { Settings }, { OptionalExtraSettings } ); + $('#markItUp').markItUp(mySettings); + + // You can add content from anywhere in your page + // $.markItUp( { Settings } ); + $('.add').click(function() { + $.markItUp( { openWith:'<opening tag>', + closeWith:'<\/closing tag>', + placeHolder:"New content" + } + ); + return false; + }); + + // And you can add/remove markItUp! whenever you want + // $(textarea).markItUpRemove(); + $('.toggle').click(function() { + if ($("#markItUp.markItUpEditor").length === 1) { + $("#markItUp").markItUpRemove(); + $("span", this).text("get markItUp! back"); + } else { + $('#markItUp').markItUp(mySettings); + $("span", this).text("remove markItUp!"); + } + return false; + }); +}); +--> +</script> +<h1><a href="http://markitup.jaysalvat.com/">markItUp!</a></h1> +<p><em><a href="http://www.jaysalvat.com">By Jay Salvat</a></em></p> +<p>Downloads, examples and documentation at <a href="http://markitup.jaysalvat.com">http://markitup.jaysalvat.com</a>.</p> +<p>Click <a href="#" class="add">this link to insert content</a> from anywhere in the page or <a href="#" class="toggle">this one to <span>remove markItUp!</span></a></p> +<p> +<textarea id="markItUp" cols="80" rows="20"> +<h1>Welcome on markItUp!</h1> + +<p><strong>markItUp!</strong> is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own markup system can be easily implemented.</p> +</textarea> +</p> +<p>Support the projet : <a href="http://markitup.jaysalvat.com/">Donate</a> | <a href="http://markitup.jaysalvat.com/">Contact</a></p> +</body> +</html> |