Support » Plugin: CKEditor for WordPress » [Plugin: CKEditor For WordPress] Concerning the subdirectories in wp-content/uploads

  • Resolved MathiasAeschlimann

    (@mathiasaeschlimann)


    I use the built-in file browser. Uploaded files go to a subdirectory, e.g. images to /images. Yet the native wp media library does not use a subdirectory system based on such categories.

    So I

    a ) can’t see files uploaded with the CKEditor filebrowser in the media library

    b) can’t see files uploaded with the media library in the CKEditor file browser.

    This doesn’t make sense, so I guess I must be doing something wrong. Maybe somebody could help me.

    Would CKFinder resolve this issue?

    http://wordpress.org/extend/plugins/ckeditor-for-wordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author michal

    (@michal_cksource)

    Hi,
    @mathiasaeschlimann you can change this behaviour for built-in filebrowser by changing few lines in wp-content/plugins/ckeditor-for-wordpress/filemanager/connectors/php/config.php file.
    Just replace this lnes 125 and 126

    $Config['FileTypesPath']['Images'] = $Config['UserFilesPath'] . 'image/' ;
    $Config['FileTypesAbsolutePath']['Images']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;

    to

    $Config['FileTypesPath']['Images'] = $Config['UserFilesPath']  ;
    $Config['FileTypesAbsolutePath']['Images']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'] ;

    In this way images will be uploaded to main WP upload directory.
    You can also change this for other resource types.
    Hope this helps you.

    Hey, thank you. Will this file get overwritten when I update the plugin?

    Plugin Author michal

    (@michal_cksource)

    Yes, you should backup this file and change it after update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: CKEditor For WordPress] Concerning the subdirectories in wp-content/uploads’ is closed to new replies.