private function getTinyMCE($mode) { $tiny_css = $this->theme_path . DIRECTORY_SEPARATOR . "css" . DIRECTORY_SEPARATOR . "tiny.css"; $tiny = new CNTinyMCE($mode); // $tiny->unsetTinyParam('skin_variant'); $tiny->setTinyParam('content_css', $tiny_css); return $tiny; }
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * @version 0.0.0-1 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * @author Cyberspace Networks <*****@*****.**> * @license GNU General Public License * @copyright Copyright (c) 2000-2014 Cyberspace Networks * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The lastest version of Cyberspace Networks CoreSystem can be obtained from: * http://developer.cyberspace-networks.com/ * For questions, help, comments, discussion, etc. please visit * https://github.com/CyberspaceNetworks/CoreSystem * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ require_once "api/CNPermissions/CNPermissionsHandler.php"; require_once "web/includes/classes/CNTinyMCE.php"; $tiny = new CNTinyMCE('blog'); echo $tiny->installTinyMCE(); /* require_once "web/includes/tinymce.php"; install_tinymce('full'); */ if (!empty($_REQUEST['ccid'])) { $permission_to_upload = PermissionsHandler::can_group_user(PA::$login_uid, $_REQUEST['ccid'], array('permissions' => 'upload_images, upload_videos')); } else { $permission_to_upload = PermissionsHandler::can_network_user(PA::$login_uid, PA::$network_info->network_id, array('permissions' => 'upload_images, upload_videos')); } ?> <fieldset> <input id="blog_type" name="blog_type" type="hidden" value="<?php echo $blog_type == 'Suggestion' ? 'Suggestion' : 'CNBlogPost'; ?>