From dce46cc585aaa87d640942841e61ff5929a365f0 Mon Sep 17 00:00:00 2001 From: kjmtrue Date: Sun, 21 Feb 2016 23:52:21 +0700 Subject: [PATCH] Fire event change --- scripts/filemanager.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/filemanager.js b/scripts/filemanager.js index c540fa54..fcaf94a0 100644 --- a/scripts/filemanager.js +++ b/scripts/filemanager.js @@ -652,6 +652,7 @@ var selectItem = function(data) { // tinymce 4 and colorbox if($.urlParam('field_name')){ parent.document.getElementById($.urlParam('field_name')).value = url; + parent.document.getElementById($.urlParam('field_name')).dispatchEvent(new Event('change')); if(typeof parent.tinyMCE !== "undefined") { parent.tinyMCE.activeEditor.windowManager.close();