Skip to content

Commit

Permalink
try to fix a table width bug
Browse files Browse the repository at this point in the history
  • Loading branch information
farthinker committed Dec 14, 2014
1 parent beae5f2 commit e9c9f56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/simditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ InputManager = (function(_super) {
pasteContent = _this._cleanPasteArea.val();
} else {
pasteContent = $('<div/>').append(_this._pasteArea.contents());
pasteContent.find('table colgroup').remove();
_this.editor.formatter.format(pasteContent);
_this.editor.formatter.decorate(pasteContent);
_this.editor.formatter.beautify(pasteContent.children());
Expand Down
1 change: 1 addition & 0 deletions site/assets/scripts/simditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,7 @@ InputManager = (function(_super) {
pasteContent = _this._cleanPasteArea.val();
} else {
pasteContent = $('<div/>').append(_this._pasteArea.contents());
pasteContent.find('table colgroup').remove();
_this.editor.formatter.format(pasteContent);
_this.editor.formatter.decorate(pasteContent);
_this.editor.formatter.beautify(pasteContent.children());
Expand Down
1 change: 1 addition & 0 deletions src/inputManager.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class InputManager extends SimpleModule
pasteContent = @_cleanPasteArea.val()
else
pasteContent = $('<div/>').append(@_pasteArea.contents())
pasteContent.find('table colgroup').remove() # clear table cols width
@editor.formatter.format pasteContent
@editor.formatter.decorate pasteContent
@editor.formatter.beautify pasteContent.children()
Expand Down

0 comments on commit e9c9f56

Please sign in to comment.