From 221f6ede2ddd149f979bb8c37dcebfb3139b8f3e Mon Sep 17 00:00:00 2001 From: jerrywham Date: Mon, 20 Dec 2021 15:23:32 +0000 Subject: [PATCH] Add editorInsertLinkedMedia erased by error --- bl-kernel/admin/views/edit-content.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bl-kernel/admin/views/edit-content.php b/bl-kernel/admin/views/edit-content.php index 8118057c..94c14865 100644 --- a/bl-kernel/admin/views/edit-content.php +++ b/bl-kernel/admin/views/edit-content.php @@ -502,6 +502,11 @@ $(document).ready(function() { $("#jseditor").val($('#jseditor').val()+''); }; } + if (typeof editorInsertLinkedMedia != "function") { + window.editorInsertLinkedMedia = function(filename, link){ + $("#jseditor").val($('#jseditor').val()+''); + }; + } // Button switch $("#jsswitchButton").on("click", function() {