Skip to content

Commit

Permalink
feat:增加取值和设值
Browse files Browse the repository at this point in the history
  • Loading branch information
ganzw committed Jan 17, 2016
1 parent e41c6f9 commit a13dcc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions artEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,11 @@ $.fn.extend({
if(!$.trim($(this).html())) {
$(this).html(_this._opt.placeholader);
}
},
getValue: function() {
return $(this).html();
},
setValue: function(str) {
$(this).html(str);
}
});
7 changes: 6 additions & 1 deletion artEditor.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a13dcc4

Please sign in to comment.