Skip to content

Commit

Permalink
fix(taBind): Corrected issue textAngular#1361 can't paste word docume…
Browse files Browse the repository at this point in the history
…nt with tables
  • Loading branch information
JoelParke committed Oct 4, 2016
1 parent df92886 commit f27d444
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/taBind.js
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,14 @@ angular.module('textAngular.taBind', ['textAngular.factories', 'textAngular.DOM'
continue;
} else {
var tagName = dom[0].childNodes[i].tagName.toLowerCase();
if(tagName !== "p" && tagName !== "h1" && tagName !== "h2" && tagName !== "h3" && tagName !== "h4" && tagName !== "h5" && tagName !== "h6"){
if(tagName !== "p" &&
tagName !== "h1" &&
tagName !== "h2" &&
tagName !== "h3" &&
tagName !== "h4" &&
tagName !== "h5" &&
tagName !== "h6" &&
tagName !== "table"){
continue;
}
}
Expand Down

0 comments on commit f27d444

Please sign in to comment.