Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Option|Description
**ng-model** | REQUIRED - The angular data model
**textarea-id** | The id to assign to the editable div
**textarea-class** | The class(es) to assign to the the editable div
**contenteditable | Disable content editing
**textarea-height** | If the height is not specified in a text-area class then the hight of the editable div (default: 80px)
**textarea-name** | The name attribute of the editable div
**textarea-required**| True/False HTML/AngularJS required validation
Expand Down
5 changes: 3 additions & 2 deletions angular-wysiwyg.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ angular.module('wysiwyg.module', ['colorpicker.module'])
textareaName: '@textareaName',
textareaPlaceholder: '@textareaPlaceholder',
textareaClass: '@textareaClass',
contenteditable: '@contenteditable',
textareaRequired: '@textareaRequired',
textareaId: '@textareaId',
textareaMenu: '@textareaMenu'
Expand Down Expand Up @@ -254,7 +255,7 @@ angular.module('wysiwyg.module', ['colorpicker.module'])
}

var getMenuTextArea = function() {
return '<div id="{{textareaId}}" ng-attr-style="resize:vertical;height:{{textareaHeight || \'80px\'}}; overflow:auto" contentEditable="true" class="{{textareaClass}} wysiwyg-textarea" rows="{{textareaRows}}" name="{{textareaName}}" required="{{textareaRequired}}" placeholder="{{textareaPlaceholder}}" ng-model="value"></div>';
return '<div id="{{textareaId}}" ng-attr-style="resize:vertical;height:{{textareaHeight || \'80px\'}}; overflow:auto" contentEditable="{{contenteditable}}" class="{{textareaClass}} wysiwyg-textarea" rows="{{textareaRows}}" name="{{textareaName}}" required="{{textareaRequired}}" placeholder="{{textareaPlaceholder}}" ng-model="value"></div>';
}

var getMenuGroup = function() {
Expand Down Expand Up @@ -376,4 +377,4 @@ angular.module('wysiwyg.module', ['colorpicker.module'])
createMenu: createMenu
}

});
});
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "angular-wysiwyg",
"description": "Angular WYSIWYG",
"version": "1.1.6",
"homepage": "https://github.com/TerryMooreII/angular-wysiwyg",
"homepage": "https://github.com/mishavp2001/angular-wysiwyg.git",
"main": "./angular-wysiwyg.js",
"dependencies": {
"angular": ">= 1.0.0",
Expand Down