A simple, clean and elegant WYSIWYG rich text editor for web aplications
Note: Check out the fully functional demo and examples here.
Prerequisites: jQuery-Notebook's default styling uses FontAwesome draw the icons on the context bubble. You can download FontAwesome here or link to the CDN.
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="src/js/jquery.notebook.css">
<script type="text/javascript" src="src/js/libs/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="src/js/jquery.notebook.js"></script>
<div class="my-editor"></div>
$(document).ready(function(){
$('.my-editor').notebook();
});
- Ctrl/Command B - Bold
- Ctrl/Command I - Italic
- Ctrl/Command U - Underline
- Ctrl/Command F1 - Header 1
- Ctrl/Command F2 - Header 2
- Ctrl/Command Z - Undo
These are the supported options and their default values:
$.fn.notebook.defaults = {
autoFocus: false,
placeholder: 'Your text here...',
mode: 'multiline', // multiline or inline
modifiers: ['bold', 'italic', 'underline', 'h1', 'h2', 'ol', 'ul', 'anchor']
};
That's it!
raphaelcruzeiro
otaviosoares
slahn
TrevorHinesley
cbartlett
penman