mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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) {
|
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
|
// Reset text content only if doing so will actually change the content
|
||||||
if (service.getTextContent(element) !== text)
|
if (service.getTextContent(element) !== text)
|
||||||
element.textContent = text;
|
element.textContent = text;
|
||||||
|
Reference in New Issue
Block a user