Skip to content

Commit

Permalink
Merge pull request TerryMooreII#42 from bjcull/master
Browse files Browse the repository at this point in the history
Fixed Usages section and grammar in README
  • Loading branch information
TerryMooreII committed Jul 17, 2015
2 parents 9237fe3 + 202d2eb commit f10b160
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ angular.module('myapp', ['myApp.controllers', 'myApp.services', 'wysiwyg.module'
Usage
------------
```html
<wysiwyg textarea-id="question" textarea-class="form-control" textarea-height="80px" textarea-name="textareaQuestion" textarea-required ng-model="yourModel.model" enable-bootstrap-title="true" textarea-menu="{{yourModel.customMenu}}"></wysiwyg>
<wysiwyg textarea-id="question" textarea-class="form-control" textarea-height="80px" textarea-name="textareaQuestion" textarea-required ng-model="yourModel.model" enable-bootstrap-title="true" textarea-menu="yourModel.customMenu"></wysiwyg>
```
Options
-----------
Expand All @@ -58,7 +58,7 @@ Option|Description
**textarea-name** | The name attribute of the editable div
**textarea-required**| True/False HTML/AngularJS required validation
**enable-bootstrap-title**| True/False whether or not to show the button hover title styled with bootstrap
**textarea-menu** | Cusomize the wysiwyg buttons and button groups ***See Below** If nothing is specified then the default buttons and groups will be shows.
**textarea-menu** | Cusomize the wysiwyg buttons and button groups ***See Below** If nothing is specified then the default buttons and groups will be shown.
**disabled** | Disable the buttons and wysiwig area

Buttons
Expand All @@ -73,6 +73,7 @@ To do so you need to create a scope variable in your controller. This variable
//This also happens to be the default menu options.
$scope.yourModel.customMenu = [
['bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript'],
['format-block'],
['font'],
['font-size'],
['font-color', 'hilite-color'],
Expand Down

0 comments on commit f10b160

Please sign in to comment.