This working for me.
Note: Remember .httaccess file with Options -Indexes and Allow from all ( See others plugins )
<?php
/**
* CKEditor plugin
*
* @package Monstra
* @subpackage Plugins
* @author Pesterev Ilya / ZenLabs
* @copyright 2014 Pesterev Ilya / ZenLabs
* @version 1.0.0
*
*/
// Register plugin
Plugin::register( __FILE__,
__('CKEditor!', 'CKEditor'),
__('CKEditor! — open source WYSIWYG editor', 'CKEditor'),
'1.0.0',
'ZenLabs',
'http://zenlabs.ru/');
// Add hooks
Action::add('admin_header', 'CKEditor::headers');
/**
* CKEditor Class
*/
class CKEditor
{
/**
* Set editor headers
*/
public static function headers()
{
echo ('
<!-- CKEditor 4.4.4 -->
<script type="text/javascript" src="'.Option::get('siteurl').'/plugins/ckeditor/ckeditor/ckeditor.js"></script>
');
echo ('<script>
window.addEventListener("DOMContentLoaded",function(){
CKEDITOR.replace( "editor_area" );
},false);
</script>');
}
}
..::: Moncho Varela ::::.. ..::: @Nakome ::::.. ..::: Github ::::..