Fieldtype

Archived
Forum
(read-only)

Expresso

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

Adding other buttons to toolbar [resolved]

General

Tyssen
Tyssen

I want to add the SyntaxHighlighter plugin to Expresso but I don’t seem to be able to add a button to the toolbar.

In ckeditor/config. js I’ve got:

CKEDITOR.editorConfig = function( config )
{
    config
.stylesSet 'custom:/themes/third_party/expresso_custom/custom.js';
    
config.contentsCss '/assets/css/editor.css';
    
config.extraPlugins 'syntaxhighlight';
    
config.toolbar_Full.push(['Code']);
}

but the button doesn’t appear. Does Expresso override whatever button options are added to config.js? I’ve also tried adding the button to ft.expresso.php:

$js .= 'toolbar: [["Styles","Code","Bold","Italic","Underline","Strike"]'

The styles dropdown shows up but not a code button. I’ve already followed the other instructions with regards to uploading SyntaxHighlighter and the plugin to the CKEditor plugins folder.

PutYourLightsOn
# 1
Developer
PutYourLightsOn

adding the button to ft.expresso.php is correct as you see with the Styles dropdown. did you copy SyntaxHighlighter to the plugins folder? otherwise i’m not sure why it is not displaying. looking at the wiki page it looks like many people are having difficulty getting this to work…

tlloyduk
# 2
tlloyduk

I am interested in this. I would like to add a new button to the toolbar, which adds the “<pre>” tag. How would I go about doing this? Is there a howto anywhere ?

Thanks!

tlloyduk
# 3
tlloyduk

that was meant to say the pre tag but it got filtered out