-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jay Salvat
committed
Mar 2, 2010
0 parents
commit 3c736e5
Showing
39 changed files
with
1,216 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
body { | ||
background:#EEE url(body.png) repeat-x; | ||
font: 13px "Trebuchet MS", Arial, Verdana; | ||
padding-top:95px; | ||
} | ||
a { | ||
text-decoration:none; | ||
color:#3C769D; | ||
} | ||
h1 a, | ||
p em a { | ||
display:block; | ||
overflow:hidden; | ||
text-indent:-1000px; | ||
position:absolute; | ||
top:0px; left:0px; | ||
} | ||
h1 a { | ||
background:#EEE url(markitup.png) no-repeat top left; | ||
width:245px; height:85px; | ||
top:28px; | ||
} | ||
p em a { | ||
background:transparent url(jaysalvat.png) no-repeat 10% 50%; | ||
width:120px; height:28px; | ||
left:30px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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-1.4.2.min.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> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.