Ckeditor "align" button

I would like to justify text inside ckeditor when editing a html media.

I tried to display the “align” buttons but even if I modify the config in ckeditor_config.js, they are not showing.

Any idea?

Here my application/asset/js/ckeditor_config.js (created with the configurator). Some buttons are note showing in Omeka S admin interface.

CKEDITOR.editorConfig = function( config ) {                                                                  
    config.toolbarGroups = [                                                                                  
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },                                     
        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },                                               
        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },                      
        { name: 'forms', groups: [ 'forms' ] },                                                               
        '/',                                                                                                  
        { name: 'paragraph', groups: [ 'align', 'list', 'indent', 'blocks', 'bidi', 'paragraph' ] },          
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },                                        
        { name: 'links', groups: [ 'links' ] },                                                               
        { name: 'insert', groups: [ 'insert' ] },                                                             
        '/',                                                                                                  
        { name: 'styles', groups: [ 'styles' ] },                                                             
        { name: 'colors', groups: [ 'colors' ] },                                                             
        { name: 'tools', groups: [ 'tools' ] },                                                               
        { name: 'others', groups: [ 'others' ] },                                                             
        { name: 'about', groups: [ 'about' ] }                                                                
        ];                                                                                                    
                                                                                                              
    config.removeButtons = 'About,NewPage,Templates,Form,Checkbox,Radio,TextField,Textarea,Select,Button,Imag\
eButton,HiddenField,Superscript,Subscript,Flash,Smiley,ShowBlocks';                                           
};     

I haven’t looked closely, but possibly you might need to load the “justify” plugin for those options to be available?

Thanks for the answer.

Indeed, it works when adding

config.extraPlugins = 'justify'; 

(justify plugin is already in application/asset/vendor/ckeditor/plugins).

Very nice to be able to custom the editor, it should be more documented imo.

This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.