Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author adispiac

    (@adispiac)

    To enable the alignments buttons you need the CKEditor – Justify plugin, please download it here and add it to our CKeditor in \wp-content\plugins\wck-custom-fields-and-custom-post-types-creator\wordpress-creation-kit-api\assets\js\ckeditor\plugins.

    Then, to enable the alignment buttons add this code in your theme functions.php file or an empty plugin like this one.

    // Add extra config elements for CKEditor ; wysiwyg
    add_action('wp_head', 'wck_custom_ckeditor_settings');
    add_action('admin_head', 'wck_custom_ckeditor_settings');
    function wck_custom_ckeditor_settings(){ ?>
        <script type="text/javascript">
            ????jQuery( function(){
                ????if ( typeof (CKEDITOR ) != "undefined" ) {????????
         CKEDITOR.config.extraPlugins = 'justify';
    ????????}
    ??});
    </script>
    <?php
    }

    We’ll also make sure to include the Justify plugin for CKEditor in our next plugin release.

    Thread Starter klynde

    (@klynde)

    Thanks.

    That did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Alignment buttons’ is closed to new replies.