Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #145 from friendsofagape/copypaste-fix
Browse files Browse the repository at this point in the history
Added fix for copy paste without style elements
  • Loading branch information
joelthe1 authored Nov 13, 2019
2 parents a1499be + 11f8de3 commit 442730b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/TranslationPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ class TranslationPanel extends React.Component {
$('div[data-verse="r' + (limits[0] + 1) + '"]').css({ "border-radius": "10px 10px 0px 0px" });
$('div[data-verse="r' + (limits[1] + 1) + '"]').css({ "border-radius": "0px 0px 10px 10px" });
}
}*/}
}*/}
document.getElementById(vId).addEventListener("paste", function (e) {
e.preventDefault();
var text = e.clipboardData.getData("text/plain");
document.execCommand("insertHTML", false, text);
})
let refContent = document.getElementsByClassName('ref-contents');
for(let l=0; l<AutographaStore.layout; l++){
let ref = refContent[l] ? refContent[l].querySelectorAll('div[data-verse^="r"]') : [];
Expand Down

0 comments on commit 442730b

Please sign in to comment.