Skip to content

Instantly share code, notes, and snippets.

@chris-ramon
Created June 9, 2012 20:41
Show Gist options
  • Save chris-ramon/2902512 to your computer and use it in GitHub Desktop.
Save chris-ramon/2902512 to your computer and use it in GitHub Desktop.
redactorjs init
<!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