GUACAMOLE-55: Use own getTextContent() rather than element.textContent, as the textContent property does not preserve line breaks due to block level elements.

This commit is contained in:
Michael Jumper committed 2016-06-29 12:57:00 -07:00
1 parent 880df109e3
commit 2471cece7f
2 files changed
+36 -37

No files matched your search

@@ -220,7 +220,7 @@ angular.module('clipboard').directive('guacClipboard', ['$injector',
$scope.$evalAsync(function assignClipboardText() {
$scope.data = new ClipboardData({
type : 'text/plain',
data : element.textContent
data : clipboardService.getTextContent(element)
});
});