Skip to content

Commit

Permalink
fix(copyFromReader): clean code and remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
yonadavGit committed Dec 20, 2023
1 parent 59733e0 commit 8be051b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions static/js/ReaderApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1938,14 +1938,13 @@ toggleSignUpModal(modalContentKind = SignUpModalKind.Default) {
elsToStrip.forEach(el => el.outerHTML = el.innerText);


// Collapse all spans that are not rangeSpan. This is also needed for specifically pasting into Google Docs in Chrome to work.
let SourceTextSpans = container.querySelectorAll('span:not(.rangeSpan)');
SourceTextSpans.forEach(el => el.outerHTML = el.innerText);

html = container.outerHTML;
textOnly = Sefaria.util.htmlToText(html);
selectedEls = container;
console.log(container)
console.log(html)
console.log(textOnly)
}


Expand Down

0 comments on commit 8be051b

Please sign in to comment.