Skip to content

Commit

Permalink
report: store textarea comments on WebEngine
Browse files Browse the repository at this point in the history
In HTML5, <textarea> innerHTML no longer syncs with textarea value
automatically, hence WebEngine didn't save/export it.
  • Loading branch information
kernc committed Feb 4, 2017
1 parent d75f00b commit 47069c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/canvas/report/owreport.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ def _build_html(self):
"onClick='pybridge._select_item(this.id)'>{}<div " \
"class='textwrapper'><textarea " \
"placeholder='Write a comment...'" \
"onInput='pybridge._add_comment(this.parentNode." \
"parentNode.id, this.value)'>{}</textarea></div>" \
"onInput='this.innerHTML = this.value;" \
"pybridge._add_comment(this.parentNode.parentNode.id, this.value);'" \
">{}</textarea></div>" \
"</div>".format(item.id, item.html, item.comment)
html += "</body></html>"
self.report_view.setHtml(html)
Expand Down

0 comments on commit 47069c7

Please sign in to comment.