Image Slider redactor extra icons

Permalink
Hi,
How can i add extra icons (like Insert Characters & Table) to image slider block description field? As i checked the redactor generate by this code at image slider block (form_setup_html.php):
<div class="form-group" >
  <label><?php echo t('Description'); ?></label>
  <div class="redactor-edit-content"></div>
  <textarea style="display: none" class="redactor-content" name="<?php echo $view->field('description'); ?>[]"><%=description%></textarea>
</div>

so is there any specific settings needed to add those icons?

 
MrKDilkington replied on at Permalink Best Answer Reply
MrKDilkington
Hi Sepehr,

The Redactor editor in the Image Slider block is called manually in the block form.
https://github.com/concrete5/concrete5/blob/5.7.x/web/concrete/block...

I believe you can override the Image Slider block form to add additional Redactor plugins.

Example:
$(function() {  // activate redactors
    $('.redactor-content').redactor({
        // CHANGES
        // add additional Redactor plugins
        plugins: ['specialcharacters', 'table'],
        // END CHANGES
        minHeight: 200,
        'concrete5': {
            filemanager: <?php echo $fp->canAccessFileManager(); ?>,
            sitemap: <?php echo $tp->canAccessSitemap(); ?>,
            lightbox: true
        }
    });
});