disabled advanced content filter of CKEditor for now

parent 9bf19537
......@@ -24,9 +24,6 @@
function editor($params) {
require_once INCLUDES_DIR . 'wysiwyg/ckeditor/ckeditor.php';
$ckeditor = new CKEditor(ROOT_DIR . 'includes/wysiwyg/ckeditor/');
$ckeditor->returnOutput = true;
$filebrowser_uri = ROOT_DIR . 'libraries/kcfinder/browse.php%s';
$upload_uri = ROOT_DIR . 'libraries/kcfinder/upload.php%s';
......@@ -44,6 +41,7 @@ function editor($params) {
$config['toolbar'] = $params['toolbar'] === 'simple' ? 'Basic' : 'Full';
$config['extraPlugins'] = 'divarea,oembed';
$config['allowedContent'] = true;
// Smilies
if ((!isset($config['toolbar']) || $config['toolbar'] !== 'simple') && ACP3_Modules::check('emoticons', 'functions') === true) {
......@@ -65,6 +63,9 @@ function editor($params) {
$config['toolbar_Basic'] = "@@[ ['Source','-','Undo','Redo','-','Bold','Italic','-','NumberedList','BulletedList','-','Link','Unlink','-','About'] ]";
}
$ckeditor = new CKEditor(ROOT_DIR . 'includes/wysiwyg/ckeditor/');
$ckeditor->returnOutput = true;
$wysiwyg = array(
'id' => $params['id'],
'editor' => $ckeditor->editor($params['name'], $params['id'], $params['value'], $config),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment