DOKSoft software store

CKUtils - plugins bundle for CKEditor

 
Image
Preview
File
Table
Bundle
Multisite
 
 
 
Features
Installation
Customizing
Licensing
 
 
 
   

CKUtils Preview Customizing

This plugin has some configurable parameters:

  1. You can configure both size and quality of the previews. Insert this code (in accordance with the default parameters) into `path-to-ckfinder/config.php` and change the values:
    $config['Plugin_Thumbs'] = Array(
       'maxWidth' => 200,
       'maxHeight' => 140,
       'quality' => 80
    );

     
  2. You can change the class of a preview link in a document by changing the corresponding parameter in `path-to-ckfinder/config.js`:
    config.smallimgHrefClass = 'gallerypic';
    For example, this default code will wrap preview in <a> links with class `gallerypic`:

    Customizing preview wrap class screenshot
     
  3. You can configure the class of a preview wrapper by adding CSS global document (or modifying the existing one) with a class description. For example, you can add a picture border to all image previews by adding this code:
    .gallerypic img {
       background-color: black;
       padding: 15px 15px 25px 15px;
    }

    In HTML document it will look like this:

    Customize wrapper class preferences screenshot
 
 

Plugin is available for installation only after purchase. You can buy it separately, in CKUtils Plugins Bundle or in CKUtils Multisite Plugins Bundle.