Created
June 9, 2012 20:41
-
-
Save chris-ramon/2902512 to your computer and use it in GitHub Desktop.
redactorjs init
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Redactor</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<script type="text/javascript" src="lib/jquery-1.7.min.js"></script> | |
<link rel="stylesheet" href="redactor/css/redactor.css" /> | |
<script src="redactor/redactor.js"></script> | |
<script type="text/javascript"> | |
$(document).ready( | |
function() | |
{ | |
$('#redactor_content').redactor({ lang : 'es' }); | |
$('#show').on('click', function(){ console.log($("#redactor_content").getCode()); }); | |
} | |
); | |
</script> | |
</head> | |
<body> | |
<div id="page"> | |
<form> | |
<textarea id="redactor_content" name="content" style="height: 360px;"><p>Hello and Welcome</p></textarea> | |
</form> | |
</div> | |
<button id="show">go</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment