使用Tinymce从另一个以前的目录集成Roxy Filemanager

时间:2015-04-06 16:48:20

标签: path directory tinymce integration

将我的JS文件称为Tinymce进入我的页面的路径

  

C:\ XAMPP \ htdocs中\ MYAPP \卖方\ JS \ functions.js

使用这个JS

tinymce.init({
    selector: "textarea[name=\"content\"] ",
    plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
    ],
    toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image", file_browser_callback: RoxyFileBrowser
});
var roxyFileman = 'fileman/index.html?integration=tinymce4';

function RoxyFileBrowser(field_name, url, type, win) {
  var roxyFileman = 'fileman/index.html';
  if (roxyFileman.indexOf("?") < 0) {     
    roxyFileman += "?type=" + type;   
  }
  else {
    roxyFileman += "&type=" + type;
  }
  roxyFileman += '&input=' + field_name + '&value=' + win.document.getElementById(field_name).value;
  if(tinyMCE.activeEditor.settings.language){
    roxyFileman += '&langCode=' + tinyMCE.activeEditor.settings.language;
  }
  tinyMCE.activeEditor.windowManager.open({
     file: roxyFileman,
     title: 'Roxy Fileman',
     width: 850, 
     height: 650,
     resizable: "yes",
     plugins: "media",
     inline: "yes",
     close_previous: "no"  
  }, {     window: win,     input: field_name    });
  return false; 
}

但我的Roxy档案工作者位于

  

C:\ XAMPP \ htdocs中\ MYAPP \ FILEMAN

这是一个来自tinymce的目录。所以,我想知道如何在tinymce中访问fileman。 我试过这个:

  

var roxyFileman ='../ fileman / index.html?integration = tinymce4';

谢谢!

0 个答案:

没有答案