CKEditor Full view of toolbar in front page with personal_blog

Discussion in 'Subrion CMS Plugins Discussion' started by Necken, Aug 16, 2016.

  1. Necken

    Necken New Member

    Hi.
    I need a little help on what I need to do to get all buttons available in ckeditor in front pages, just like it has in admin pages.
    For example Blog. When adding/modifying blog post from admin panel, I can see all tools/buttons in ckeditor.
    But in front page its limited.
    Any ideas?
    ckeditor-adminpanel.png ckeditor-frontpage.png
  2. Alex_Zh.

    Alex_Zh. New Member

    Hi
    Go to "your_site/js/ckeditor/config.js".
    Find config.toolbar_simple. This is config is related to add form on frontend part of the site. config.toolbar_dashboard is used for admin part of the site.

    In order to add any buttons, use following instruction:

    For example, in default
    Code (Javascript):
    config.toolbar_simple = [
    ['Cut', 'Copy', 'Paste','PasteText','PasteFromWord'],
    ['Bold','Italic','Underline','Strike'],
    ['TextColor','BGColor'],
    ['Link','Unlink'],
    ['Image','MediaEmbed','Code']
    ];
    If you change
    Code (Javascript):
    config.toolbar_simple = [
    ['Source', '-', 'Maximize'],
    ['Cut', 'Copy', 'Paste','PasteText','PasteFromWord'],
    ['Bold','Italic','Underline','Strike'],
    ['TextColor','BGColor'],
    ['Link','Unlink'],
    ['Image','MediaEmbed','Code']
    ];
    Then in ckeditor come in sight 2 buttons "Source" and "Full screen"

    If you want to use all buttons set like in admin part site:

    Find
    Code (Javascript):
    if (typeof intelli.admin == 'undefined')
        {
            config.toolbar = 'simple';
        }
    and replace with
    Code (Javascript):
    if (typeof intelli.admin == 'undefined')
        {
            config.toolbar = 'dashboard';
        }
    Don't forget to clear browser cache.
    Thanks for your interest of our soft products
    Dayir_A., Andrew_G. and Vasily_B. like this.

Share This Page