Been at this for over an hour.
Calling ckeditor from a php script, works GREAT. But I wanted to change some buttons on the toolbar. I've searched the cksource site, and there is NO php API documentation for starters. I looked in the ckeditor_php5.php file as someone else suggested and found an instruction to configure the toolbar with
This is how I invoke the editor:
$CKEditor = new CKeditor() ;
$CKEditor->basePath = '/includes/ckeditor/' ;
$CKEditor->returnOutput = true;
$CKEditor->config['toolbar'] = 'Full';
$CKEditor->config['uiColor'] = '#EDEDED';
$CKEditor->config['height'] = 400;
$CKEditor->config['resize_enabled'] = false;
$textarea_email_text = $CKEditor->editor('email_text', $email_text, $config, $events);
I've tried changing the config['toolbar'] line to Full, Basic, and even removed it. None of these configurations have any affect on the toolbar being generated. I'm checking from different systems to make sure there isn't a caching issue.
I've also tried adding
$CKEditor->config['toolbar'] = array(
array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
array( 'Image', 'Link', 'Unlink', 'Anchor' )
);
Again, absolutely no affect on the actual toolbar.
I went into the includes/_source/plugins/toolbar folder and edited the plugin.js file.. made changes to both Full and Basic toolbars (neither of which is what is being displayed in my form). No changes made in this file have an affect on the toolbar being generated.
This is driving me mad.
How on earth do I add/remove buttons from the toolbar???
Calling ckeditor from a php script, works GREAT. But I wanted to change some buttons on the toolbar. I've searched the cksource site, and there is NO php API documentation for starters. I looked in the ckeditor_php5.php file as someone else suggested and found an instruction to configure the toolbar with
This is how I invoke the editor:
$CKEditor = new CKeditor() ;
$CKEditor->basePath = '/includes/ckeditor/' ;
$CKEditor->returnOutput = true;
$CKEditor->config['toolbar'] = 'Full';
$CKEditor->config['uiColor'] = '#EDEDED';
$CKEditor->config['height'] = 400;
$CKEditor->config['resize_enabled'] = false;
$textarea_email_text = $CKEditor->editor('email_text', $email_text, $config, $events);
I've tried changing the config['toolbar'] line to Full, Basic, and even removed it. None of these configurations have any affect on the toolbar being generated. I'm checking from different systems to make sure there isn't a caching issue.
I've also tried adding
$CKEditor->config['toolbar'] = array(
array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ),
array( 'Image', 'Link', 'Unlink', 'Anchor' )
);
Again, absolutely no affect on the actual toolbar.
I went into the includes/_source/plugins/toolbar folder and edited the plugin.js file.. made changes to both Full and Basic toolbars (neither of which is what is being displayed in my form). No changes made in this file have an affect on the toolbar being generated.
This is driving me mad.
How on earth do I add/remove buttons from the toolbar???
Re: Can't change toolbar, calling from PHP. Driving me CRA