Skip to content

Instantly share code, notes, and snippets.

@devangmundhra
Created October 24, 2012 17:16
Show Gist options
  • Save devangmundhra/3947419 to your computer and use it in GitHub Desktop.
Save devangmundhra/3947419 to your computer and use it in GitHub Desktop.
Textarea
<!DOCTYPE html>
<style>
textarea {
color: white;
width: 280px;
height: 280px;
border: 1px solid gray;
border-radius: 8px;
font-family: HelveticaNeue-CondensedBold;
font-size: 24px;
background-color: gray;
resize: none;
}
</style>
<textarea id="textarea" autofocus="autofocus"></textarea>
<!-- <button onclick="getHtmlContent()">Read Text</button> -->
<script src="https://github.com/xing/wysihtml5/wysihtml5/parser_rules/simple.js"></script>
<script src="https://github.com/xing/wysihtml5/wysihtml5/dist/wysihtml5-0.3.0.js"></script>
<script>
var editor = new wysihtml5.Editor("textarea", {
parserRules: wysihtml5ParserRules,
useLineBreaks: false
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment