Hello guys,
I'm using the CKFinder in combination with the CKEditor at to upload and link files at specific textareas. This works nice, also with the currentFolder-method. However I've a problem with the startupPath function, I don't get it working...it always starts at the main-folder or at the last folder...
Here is my code:
It would be nice if someone could give me a hint how I could solve my problem.
THX mhild86
I'm using the CKFinder in combination with the CKEditor at to upload and link files at specific textareas. This works nice, also with the currentFolder-method. However I've a problem with the startupPath function, I don't get it working...it always starts at the main-folder or at the last folder...
Here is my code:
function ReplaceAllTextareasMessages() { // replace all of the textareas CKEDITOR.replaceAll( function( textarea, config ) { config.width='<?PHP print (E_WIDTH); ?>'; config.height='<?PHP print (E_HEIGHT); ?>'; config.language='de'; config.skin = 'v2'; config.enterMode = CKEDITOR.ENTER_BR; config.resize_enabled = false; config.rememberLastFolder = false; config.startupFolderExpanded = true; config.removePlugins = 'elementspath'; config.toolbar= 'Basic'; config.toolbar_Basic = [ [ 'Cut','Copy','PasteText','-','Undo','Redo','-','Find','Replace','-','SelectAll','-','SpellChecker' ], [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ,'-', 'Font','FontSize','TextColor','BGColor'], [ 'NumberedList','BulletedList','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ,'-','Link','Unlink','Image','-','Maximize'], ]; config.filebrowserWindowFeatures = 'resizable=no'; config.startupPath ='Images:<?PHP print (IMG_FOLDER); ?>'; config.filebrowserBrowseUrl = '../ckfinder2/ckfinder.html'; config.filebrowserImageBrowseUrl = '../ckfinder2/ckfinder.html?Type=Images'; config.filebrowserUploadUrl = '../ckfinder2/core/connector/php/connector.php?command=QuickUpload&type=Files¤tFolder=<?PHP print (IMG_FOLDER); ?>'; config.filebrowserImageUploadUrl = '../ckfinder2/core/connector/php/connector.php?command=QuickUpload&type=Images¤tFolder=<?PHP print (IMG_FOLDER); ?>'; if(textarea.className!='<?PHP print (E_TEXTAREA); ?>') return false; }); }
It would be nice if someone could give me a hint how I could solve my problem.
THX mhild86