mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-55: Strip any images which may be present prior to assigning text content.
This commit is contained in:
@@ -306,6 +306,9 @@ angular.module('clipboard').factory('clipboardService', ['$injector',
|
||||
*/
|
||||
service.setTextContent = function setTextContent(element, text) {
|
||||
|
||||
// Strip out any images
|
||||
$(element).find('img').remove();
|
||||
|
||||
// Reset text content only if doing so will actually change the content
|
||||
if (service.getTextContent(element) !== text)
|
||||
element.textContent = text;
|
||||
|
Reference in New Issue
Block a user