diff --git a/lib/simditor.js b/lib/simditor.js index 0891d017..d25db2c5 100644 --- a/lib/simditor.js +++ b/lib/simditor.js @@ -883,6 +883,7 @@ InputManager = (function(_super) { pasteContent = _this._cleanPasteArea.val(); } else { pasteContent = $('
').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()); diff --git a/site/assets/scripts/simditor.js b/site/assets/scripts/simditor.js index 0891d017..d25db2c5 100644 --- a/site/assets/scripts/simditor.js +++ b/site/assets/scripts/simditor.js @@ -883,6 +883,7 @@ InputManager = (function(_super) { pasteContent = _this._cleanPasteArea.val(); } else { pasteContent = $('
').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()); diff --git a/src/inputManager.coffee b/src/inputManager.coffee index fcb4deb6..880a1615 100644 --- a/src/inputManager.coffee +++ b/src/inputManager.coffee @@ -295,6 +295,7 @@ class InputManager extends SimpleModule pasteContent = @_cleanPasteArea.val() else pasteContent = $('
').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()