Skip to content

Instantly share code, notes, and snippets.

@tnhu
Created May 3, 2011 00:19
Show Gist options
  • Save tnhu/952620 to your computer and use it in GitHub Desktop.
Save tnhu/952620 to your computer and use it in GitHub Desktop.
js_quicktags html
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Quick HTML Editor</title>
<script src="https://gist.github.com/raw/952545/6d241920c58826abd70e7775270c54cf21d7190e/js_quicktags.js" type="text/javascript"></script>
<style>
textarea {
display: block;
position: fixed;
top: 55px;
left: 5px;
right: 5px;
bottom: 5px;
-moz-outline: none;
outline: none;
noFocusLine: expression(this.onFocus=this.blur());
padding: 4px;
font-family: "Inconsolata", "Monaco", "Consolas", "Andale Mono", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace;
line-height: 15px;
font-size: 12px;
background: white url(http://jsfiddle.net/img/shadow.gif) 0 0 repeat-x;
border: 1px solid #dddddd;
}
::-moz-focus-inner {border:0;}
</style>
</head>
<body>
<script type="text/javascript">edToolbar('canvas');</script>
<textarea id="canvas" rows="20" cols="50"></textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment