From 07c42f8ba4d4fe0b3149a3f77a6e34313a98f839 Mon Sep 17 00:00:00 2001 From: Matt Davidson Date: Tue, 12 Sep 2017 11:16:33 -0400 Subject: [PATCH] Fixed issue with hardcoded text areas --- tinymce/sketch.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinymce/sketch.html b/tinymce/sketch.html index 37fc33b..b1fc75d 100644 --- a/tinymce/sketch.html +++ b/tinymce/sketch.html @@ -64,7 +64,8 @@ // Only handle the event if an image file was dropped in. var handlesDataTransfer = (sketchimage && sketchimage.size && sketchimage.type == 'image/png'); if (handlesDataTransfer) { - var options = parent.M.editor_tinymce.filepicker_options['id_summary_editor'].image, + var host = parent.tinyMCE.activeEditor.editorId, + options = parent.M.editor_tinymce.filepicker_options[host].image, savepath = (options.savepath === undefined) ? '/' : options.savepath, formData = new FormData(), timestamp = 0,