You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple, clean and elegant WYSIWYG rich text editor for web aplications Note: Check out the fully functional demo and examples here.
Usage
Prerequisites: jQuery-Notebook's default styling FontAwesome draw the icons on the context bubble.
You can install both FontAwesome and jQuery-Notebook through bower with the following command:
bower install jquery-notebook font-awesome
Alternatively, you can download FontAwesome here or link to the CDN.
Add the FontAwesome css and jQuery-Notebook css to you page head:
These are the supported options and their default values:
$.fn.notebook.defaults={autoFocus: false,placeholder: 'Your text here...',mode: 'multiline',// multiline or inlinemodifiers: ['bold','italic','underline','h1','h2','ol','ul','anchor']};
Events
contentChange:
Fires every time the editor's content is modified:
// Using jQuery:$('.my-editor').on('contentChange',function(e){varcontent=e.originalEvent.detail.content;});// OR using the event directly:vareditorDomElement=$('.my-editor').get(0);editorDomElement.addEventListener('contentChange',function(e){varcontent=e.detail.content;});
Contributing
We use Github Issues to do basically everything on this project, from feature
request to bug tracking. There are a few issues marked as easy picking.
These issues are ideally suited for someone who wants to start contributing as
they are fairly simple.
To contribute to this project just fork the repository,
create a branch with a descriptive but brief name and send a pull
request when ready. There is no need to squash your commits
before sending a pull request. After a few accepted and merged pull requests you can
request push rights to the repository if you want to.
Please use 4 spaces for indentation. Any pull requests that has any JavaScript
code with a different indentation will be rejected.