mirror of https://github.com/keeweb/keeweb.git
Merge pull request #243 from cttttt/preserve-newlines-while-copying-values
Try harder to to preserve newlines while copying in the Desktop app
This commit is contained in:
commit
e08a104935
|
@ -85,7 +85,7 @@ var FieldView = Backbone.View.extend({
|
|||
range.selectNodeContents(this.valueEl[0]);
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
copyRes = CopyPaste.copy(this.valueEl.text());
|
||||
copyRes = CopyPaste.copy(this.valueEl[0].innerText || this.valueEl.text());
|
||||
if (copyRes) {
|
||||
selection.removeAllRanges();
|
||||
this.trigger('copy', { source: this, copyRes: copyRes });
|
||||
|
|
Loading…
Reference in New Issue