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
2016-06-29 12:57:00 -07:00
parent 880df109e3
commit 2471cece7f
2 changed files with 36 additions and 37 deletions

View File

@@ -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)
});
});