tiny-edit1.2.1-pre4.3 • Public • Published
Demo is available at:
- Bootstrap 3.x for the default styles
- Font-Awesome 4.x for the default icons on the toolbar
- Rangy 1.x for better activeState detection and more dynamic plugins, also the selectionsaverestore module.
Where to get it
bower install tinyEdit from the command line.
Include script tags similar to the following:
angular-sanitize.jsin your project using script tags
- Add a dependency to
tinyEditin your app module, for example:
- Create an element to hold the editor and add an
htmtlVariableis the scope variable that will hold the HTML entered into the editor:
This acts similar to a regular AngularJS / form input if you give it a name attribute, allowing for form submission and AngularJS form validation.
Important Note: Though tinyEdit supports the use of all attributes in it's input, please note that angulars ng-bind-html WILL strip out all of your style attributes.
For Additional options see the github Wiki.
execCommand for the rich-text functionality.
That being said, its still a fairly experimental browser feature-set, and may not behave the same in all browsers - see http://tifftiff.de/contenteditable/compliance_test.html for a full compliance list.
It has been tested to work on Chrome, Safari, Opera, Firefox and Internet Explorer 8+.
If you find something, please let me know - throw me a message, or submit a issue request!
When checking out, you need a node.js installation, running
npm install will get you setup with everything to run the unit tests and minification.
This project is licensed under the MIT license.