Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mycolorway/simditor
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Apr 14, 2014
2 parents 972b58b + 9e003f9 commit a8ab937
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/simditor-all.js

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

3 changes: 2 additions & 1 deletion lib/simditor.js

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

3 changes: 2 additions & 1 deletion site/assets/scripts/simditor-all.js

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

2 changes: 1 addition & 1 deletion site/assets/scripts/simditor-all.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/buttons/image.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ class ImageButton extends Button
return if $wrapper.length > 0

$wrapper = $(@_wrapperTpl)
.width($img.width())
.insertBefore($img)
.prepend($img)

Expand Down Expand Up @@ -235,6 +236,7 @@ class ImageButton extends Button
$img.attr({
src: src,
width: width,
height: height,
'data-origin-src': src,
'data-origin-name': '图片',
'data-origin-size': img.width + ',' + img.height
Expand Down
2 changes: 2 additions & 0 deletions src/simditor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2668,6 +2668,7 @@ class ImageButton extends Button
return if $wrapper.length > 0

$wrapper = $(@_wrapperTpl)
.width($img.width())
.insertBefore($img)
.prepend($img)

Expand Down Expand Up @@ -2695,6 +2696,7 @@ class ImageButton extends Button
$img.attr({
src: src,
width: width,
height: height,
'data-origin-src': src,
'data-origin-name': '图片',
'data-origin-size': img.width + ',' + img.height
Expand Down

0 comments on commit a8ab937

Please sign in to comment.