Skip to content

Commit

Permalink
change pase img name to title
Browse files Browse the repository at this point in the history
  • Loading branch information
machuanjia committed Oct 31, 2017
1 parent 5bfff37 commit fb6cca4
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.9",
"version": "1.3.0",
"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 @@ -1138,7 +1138,7 @@ angular.module("wt-editor")
// get the blob
var imageFile = theClipboardData.items[i].getAsFile();
if(imageFile){
imageFile.name = "[" + $rootScope.global.me.display_name + "] " +"upload"+ " - " + moment().format("YYYY-MM-DD HH:mm ss") + ".png";
imageFile.title = "[" + $rootScope.global.me.display_name + "] " +"upload"+ " - " + moment().format("YYYY-MM-DD HH:mm ss") + ".png";
$files.push(imageFile);
e.preventDefault();
break;
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.9",
"version": "1.3.0",
"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 @@ -1136,7 +1136,7 @@ angular.module("wt-editor")
// get the blob
var imageFile = theClipboardData.items[i].getAsFile();
if(imageFile){
imageFile.name = "[" + $rootScope.global.me.display_name + "] " +"upload"+ " - " + moment().format("YYYY-MM-DD HH:mm ss") + ".png";
imageFile.title = "[" + $rootScope.global.me.display_name + "] " +"upload"+ " - " + moment().format("YYYY-MM-DD HH:mm ss") + ".png";
$files.push(imageFile);
e.preventDefault();
break;
Expand Down

0 comments on commit fb6cca4

Please sign in to comment.