Fix trying to copy URLs upon saving

pull/61/head
Frode Petterson 2019-05-08 14:16:22 +02:00
parent 5d7b480c3b
commit b9a1e5f404
1 changed files with 1 additions and 1 deletions

View File

@ -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) {