Skip to content

Commit

Permalink
add placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
machuanjia committed Mar 8, 2017
1 parent 46d6f7a commit 2c636bd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-wt-editor",
"version": "1.2.0",
"version": "1.2.1",
"homepage": "https://github.com/WorktileTech/angular-wt-editor",
"authors": [
"YCTech"
Expand Down
2 changes: 1 addition & 1 deletion dist/wt-editor-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wt-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ angular.module("wt-editor")

vm.editor = $(element).find('.wt-editor-textarea')[0];
try{
vm.editor.setAttribute('placeholder',controller[0].getLocaleText('placeholder'));
vm.editor.setAttribute('placeholder',wtEditorConfig.placeholder?wtEditorConfig.placeholder:controller[0].getLocaleText('placeholder'));
}catch(e){}

//插入方法
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-wt-editor",
"version": "1.2.0",
"version": "1.2.1",
"description": "angular-wt-editor =================",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ angular.module("wt-editor")

vm.editor = $(element).find('.wt-editor-textarea')[0];
try{
vm.editor.setAttribute('placeholder',controller[0].getLocaleText('placeholder'));
vm.editor.setAttribute('placeholder',wtEditorConfig.placeholder?wtEditorConfig.placeholder:controller[0].getLocaleText('placeholder'));
}catch(e){}

//插入方法
Expand Down

0 comments on commit 2c636bd

Please sign in to comment.