TinyMCE + CJFileBrowser - can't see directory??
Hello, everyone.
I'm not actually SURE that the CJFileBrowser can't see the directory; but it is what I am guessing is the issue.
Whenever I click on the icon for adding an image, I get the first window that contains a form for filling out information; but if I click on that popups icon for browsing the server / uploading from your computer, the window opens but nothing is selectable, no files are displayed, and the drop down menu for navigating directories is greyed out and not clickable (same thing for the left/right buttons.)
I'll include my initialization code. Can someone please help me figure this out?
Thanks,
^_^
Code:
function content_view_init(){
var thisURLarray = getRoot();
tinyMCE.init({ mode : "textareas", theme : "advanced", width: "100%",
plugins : "table,save,contextmenu,paste,noneditable,cjfilebrowser",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,styleselect,fontsizeselect,|,bullist,numlist,|,outdent,indent,|,undo,redo",
theme_advanced_buttons2:"link,unlink,anchor,image,cleanup,help,code,|,hr,removeformat,visualaid,|,sub,sup,|,charmap",
theme_advanced_buttons3:"",
theme_advanced_font_sizes: "10px,12px,14px,16px,18px,20px",
font_size_style_values: "10px,12px,14px,16px,18px,20px",
content_css : "" + thisURLarray + "styles/site/_SRT.css",
theme_advanced_styles: "Subheader=sub-header",
theme_advanced_blockformats : "span,div,h1,h2,h3",
theme_advanced_text_colors : "0681B7,FBBB0F,666666,999999",
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : '',
plugin_cjfilebrowser_browseUrl : "" + thisURLarray + "tinymce/jscripts/tiny_mce/plugins/cjfilebrowser/cjfilebrowser.html",
plugin_cjfilebrowser_actions : "navigateDirectory,createDirectory,fileDelete,fileUpload,filePreviews,fileSelect",
plugin_cjfilebrowser_winWidth : 900,
plugin_cjfilebrowser_winHeight : 600,
plugin_cjfilebrowser_assetsUrl: "" + thisURLarray + "images/", // from web root
plugin_cjfilebrowser_fileExts: "jpg,jpeg,pjpeg,gif,png",
plugin_cjfilebrowser_maxSize: 100,
// plugin_cjfilebrowser_maxWidth: 600,
// plugin_cjfilebrowser_maxHeight: 600,
plugin_cjfilebrowser_showImgPreview: true,
plugin_cjfilebrowser_engine: "coldfusion8",
plugin_cjfilebrowser_handler: "handler.cfc",
plugin_cjfilebrowser_timeOut: 480, // 8 minutes
file_browser_callback : "CJFileBrowser_tinyMCE_Callback"});
//alert("" + thisURLarray + "images/");
}
.. and here is the code for getRoot():
Code:
function getRoot() {
var thisURLvalue, thisURLarray, thisURLroot;
thisURLvalue = document.URL;
thisURLvalue = thisURLvalue.replace(/^http[s]*:\/\//i,"");
thisURLarray = new Array();
thisURLarray = thisURLvalue.split('/'); thisURLroot = thisURLarray.pop(); thisURLroot = thisURLarray.shift();
thisURLarray = thisURLarray.toString(); thisURLarray = thisURLarray.replace(/,/g,"/"); thisURLarray = "/" + thisURLarray + "/";
if(thisURLarray == "//") { thisURLarray = "/"; }
return thisURLarray;
}
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks