require $cfg_file; } elseif (file_exists(CAT_Helper_Directory::sanitizePath(dirname(__FILE__) . "/driver/" . WYSIWYG_EDITOR . "/c_editor.php"))) { require_once dirname(__FILE__) . "/driver/" . WYSIWYG_EDITOR . "/c_editor.php"; } else { $admin->print_error($backend->lang()->translate('No configuration file for editor [{{editor}}]', array('editor' => WYSIWYG_EDITOR)), NULL, false); } // check for language file if (file_exists(CAT_Helper_Directory::sanitizePath(CAT_PATH . '/modules/' . WYSIWYG_EDITOR . '/languages/' . LANGUAGE . '.php'))) { $backend->lang()->addFile(LANGUAGE . '.php', CAT_Helper_Directory::sanitizePath(CAT_PATH . '/modules/' . WYSIWYG_EDITOR . '/languages')); } $config = wysiwyg_admin_config(); // load driver class $c = new c_editor(); $errors = array(); $width_unit = $height_unit = '%'; $width = $c->getWidth($config); $height = $c->getHeight($config); if (preg_match('~(\\d+)(.*)~', $width, $match)) { $width = $match[1]; $width_unit = $match[2]; } if (preg_match('~(\\d+)(.*)~', $height, $match)) { $height = $match[1]; $height_unit = $match[2]; } $skins = $c->getSkins($c->getSkinPath()); $current_skin = $c->getSkin($config); $settings = $c->getAdditionalSettings(); $plugins = $c->getAdditionalPlugins(); $filemanager = $c->getFilemanager(); $toolbars = $c->getToolbars();