Skip to content

Commit

Permalink
workaround for copying table into other app
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Jul 10, 2018
1 parent 1b7d1c6 commit 67eddd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ function convertHTML(blot, index, length, isRoot = false) {
}
const { outerHTML, innerHTML } = blot.domNode;
const [start, end] = outerHTML.split(`>${innerHTML}<`);
// TODO cleanup
if (start === '<table') {
return `<table style="border: 1px solid #000;">${parts.join('')}<${end}`;
}
return `${start}>${parts.join('')}<${end}`;
}
return blot.domNode.outerHTML;
Expand Down

0 comments on commit 67eddd8

Please sign in to comment.