From b9a1e5f404fccdbdff778da6aeb2d4dd934f8917 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Wed, 8 May 2019 14:16:22 +0200 Subject: [PATCH] Fix trying to copy URLs upon saving --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 2a4046b..5718f36 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -2552,7 +2552,7 @@ H5P.createTitle = function (rawTitle, maxLength) { // Update file URLs and reset content Ids recursiveUpdate(clipboardData.specific, function (path) { var isTmpFile = (path.substr(-4, 4) === '#tmp'); - if (!isTmpFile && clipboardData.contentId) { + if (!isTmpFile && clipboardData.contentId && !path.match(/^https?:\/\//i)) { // Comes from existing content if (H5PEditor.contentId) {