<div class="page-header"> <h1>Online Editor - User Mode</h1> </div> <div class="row"> <div class="col-md-12"> <?php echo form_open('', 'method="post"'); ?> <div> <?php $config = CKEditorConfig::get('user'); $config['config']['height'] = '150'; $ckeditor = new CKEditor($config['basePath']); $ckeditor->textareaAttributes = $config['textareaAttributes']; $ckeditor->initialized = true; $ckeditor->editor('content', $content, $config['config']); ?> </div> <br class="clear" /> <button type="submit" class="btn btn-primary">Submit Content</button> <?php echo form_close(); ?>
<div class="page-header"> <h1>Online Editor - Admin Mode</h1> </div> <div class="row"> <div class="col-md-12"> <?php echo form_open('', 'method="post"'); ?> <div> <?php $config = CKEditorConfig::get('admin'); $config['config']['height'] = '150'; $ckeditor = new CKEditor($config['basePath']); $ckeditor->textareaAttributes = $config['textareaAttributes']; $ckeditor->initialized = true; $ckeditor->editor('content', $content, $config['config']); ?> </div> <br class="clear" /> <button type="submit" class="btn btn-primary">Submit Content</button> <?php echo form_close(); ?>