fix bug

parent a36b6e86
......@@ -24,22 +24,6 @@ document.addEventListener("DOMContentLoaded", function() {
//'undo redo | styleselect | bold italic | link image | alignleft aligncenter alignright'
//],
file_browser_callback: function(field_name, url, type, win) {
var cmsURL = window.location.toString(); // script URL - use an absolute path!
if (cmsURL.indexOf("?") < 0) {
//add the type as the only query parameter
cmsURL = cmsURL + "?type=" + type;
}
else {
//add the type as an additional query parameter
// (PHP session ID is now included if there is one at all)
cmsURL = cmsURL + "&type=" + type;
}
tinyMCE.activeEditor.windowManager.open({
},
setup: function(editor) {
editor.on('init', function(e) {
//editor.execCommand('mceFullScreen'); // Make fullscreen by default
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment