From 98872bbe7c62faa4aa209fa421c2989aeef3aaf2 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 9 Mar 2014 20:39:03 +0000 Subject: [PATCH] Allow pasting/dropping of HTML content Fixes #477 --- core/modules/widgets/dropzone.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/modules/widgets/dropzone.js b/core/modules/widgets/dropzone.js index b5aa17002..60dcd20fe 100644 --- a/core/modules/widgets/dropzone.js +++ b/core/modules/widgets/dropzone.js @@ -147,6 +147,11 @@ DropZoneWidget.prototype.importDataTypes = [ }; } }}, + {type: "text/html", IECompatible: false, convertToFields: function(data) { + return { + text: data + }; + }}, {type: "text/plain", IECompatible: false, convertToFields: function(data) { return { text: data