mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-12 07:57:41 +00:00
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:
@@ -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)
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user