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
|
Posted: 21 June 2011 11:01 AM |
|
|
|
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
|
Posted: 23 June 2011 02:42 PM |
# 1
|
|
Developer
|
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
|
Posted: 08 July 2011 01:51 PM |
# 2
|
|
|
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
|
Posted: 08 July 2011 02:02 PM |
# 3
|
|
|
that was meant to say the pre tag but it got filtered out
|
|
|