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