protected String getCurrentFolderPath ( GenericWebAppContext context ) { // To limit browsing set Servlet init param "digitalAssetsPath" with desired JCR path String rootFolderStr = ( String ) context . get ( "org.exoplatform.frameworks.jcr.command.web.fckeditor.digitalAssetsPath" ) ; if ( rootFolderStr == null ) rootFolderStr = "/" ; // set current folder String currentFolderStr = ( String ) context . get ( "CurrentFolder" ) ; if ( currentFolderStr == null ) currentFolderStr = "" ; else if ( currentFolderStr . length ( ) < rootFolderStr . length ( ) ) currentFolderStr = rootFolderStr ; return currentFolderStr ; }
Return FCKeditor current folder path .