When creating a CKEditor instance, the following steps are typically taken:
require_once 'ckeditor/ckeditor.php';
$CK = new CKeditor();
$CK->basePath = './ckeditor/';
$config = array();
echo '<textarea name="content" id="content"></textarea>';
$config['contentsCss'] = 'style1.css';
$config['ImageUpload'] = false;
$config['toolbar'] = 'Basic';
$events = array();
$CK->replace('content', $config, $events);
But what if you want to change configuration details, like the "contentsCss," via JavaScript after the instance has already been created? Is this possible?
One approach that may come to mind is to use the following JavaScript code (although it may not work as expected):
<a href="#" onclick="CKEDITOR.instances.content.config.toolbar = 'Full'; return false;">change toolbar style</a>