예제 #1
0
 /**
  * FormDhtmlTextArea::__construct()
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->rootPath = '/class/xoopseditor/' . basename(__DIR__);
     $hiddenText = isset($this->configs['hiddenText']) ? $this->configs['hiddenText'] : $this->_hiddenText;
     $this->renderer = new Xoops\Form\DhtmlTextArea('', $this->getName(), $this->getValue(), $this->getRows(), $this->getCols(), $hiddenText, $this->configs);
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param    array   $configs  Editor Options
  */
 function __construct($configs)
 {
     $this->rootPath = "/class/xoopseditor/codemirror2";
     parent::__construct($configs);
     $this->width = isset($this->configs["width"]) ? $this->configs["width"] : $this->width;
     $this->height = isset($this->configs["height"]) ? $this->configs["height"] : $this->height;
     $this->syntax = isset($this->configs["syntax"]) ? $this->configs["syntax"] : $this->syntax;
 }
예제 #3
0
 /**
  * FormDhtmlTextArea::__construct()
  *
  * @param array $options
  */
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->rootPath = '/class/xoopseditor/' . basename(dirname(__FILE__));
     $hiddenText = isset($this->configs['hiddenText']) ? $this->configs['hiddenText'] : $this->_hiddenText;
     xoops_load('XoopsFormDhtmlTextArea');
     $this->renderer = new XoopsFormDhtmlTextArea('', $this->getName(), $this->getValue(), $this->getRows(), $this->getCols(), $hiddenText, $this->configs);
 }
예제 #4
0
 /**
  * Constructor
  *
  * @param    array   $configs  Editor Options
  */
 function __construct($configs)
 {
     $this->rootPath = "/class/xoopseditor/fckeditor";
     parent::__construct($configs);
     $this->width = isset($this->configs["width"]) ? $this->configs["width"] : $this->width;
     $this->height = isset($this->configs["height"]) ? $this->configs["height"] : $this->height;
     $this->upload = isset($this->configs["upload"]) ? $this->configs["upload"] : $this->upload;
     $this->toolbarset = isset($this->configs["toolbarset"]) ? $this->configs["toolbarset"] : $this->toolbarset;
 }
예제 #5
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/jwysiwyg";
     parent::__construct($configs);
     $this->width = $configs['width'];
     $this->height = $configs['height'];
 }
예제 #6
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/cleditor";
     parent::__construct($configs);
     //$this->XoopsFormTextArea($configs['caption'], $configs['name'], $configs['value']);
     $this->width = $configs['width'];
     $this->height = $configs['height'];
 }
예제 #7
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/rte";
     parent::__construct($configs);
     $this->width = $configs['width'];
     $this->height = $configs['height'];
     $this->cssurl = $this->config["cssurl"] . XOOPS_URL . "/class/xoopseditor/rte/rte/";
     $this->mediaurl = $this->config["mediaurl"] . XOOPS_URL . "/class/xoopseditor/rte/rte/";
 }
예제 #8
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/markitup";
     parent::__construct($configs);
     //$this->XoopsFormTextArea($configs['caption'], $configs['name'], $configs['value']);
     $this->width = $configs["width"] . "500px";
     $this->height = $configs["height"] . "300px";
     $this->sets = $this->config["sets"] . "html";
     $this->skins = $this->config["skins"] . "markitup";
 }
예제 #9
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/htmlbox";
     parent::__construct($configs);
     $this->width = $configs['width'];
     $this->height = $configs['height'];
     $this->toolbars = isset($this->configs["toolbars"]) ? $this->configs["toolbars"] : $this->toolbars;
     //$this->urlimg = isset($this->configs["urlimg"]) ? $this->configs["urlimg"] : $this->urlimg;
     $this->skin = isset($this->configs["skin"]) ? $this->configs["skin"] : $this->skin;
     $this->urlimg = $this->config["urlimg"] . XOOPS_URL . "/class/xoopseditor/htmlbox/htmlbox/images/";
 }
예제 #10
0
 function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/openwysiwyg";
     parent::__construct($configs);
     $this->width = $configs['width'];
     $this->height = $configs['height'];
     $this->imgurl = $this->config["imgurl"] . XOOPS_URL . "/class/xoopseditor/openwysiwyg/openwysiwyg/images/";
     $this->cssurl = $this->config["cssurl"] . XOOPS_URL . "/class/xoopseditor/openwysiwyg/openwysiwyg/styles/";
     $this->popurl = $this->config["popurl"] . XOOPS_URL . "/class/xoopseditor/openwysiwyg/openwysiwyg/popups/";
     $this->popimgurl = $this->config["popimgurl"] . XOOPS_URL . "/class/xoopseditor/openwysiwyg/openwysiwyg/addons/imagelibrary/insert_image.php";
     $this->poplinkurl = $this->config["poplinkurl"] . XOOPS_URL . "/class/xoopseditor/openwysiwyg/openwysiwyg/addons/linklibrary/insert_hyperlink.php";
 }
예제 #11
0
 /**
  * Constructor
  *
  * @param array $configs Editor Options
  */
 public function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR != "/") {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $current_path);
     }
     $this->rootPath = "/class/xoopseditor/tinymce4";
     parent::__construct($configs);
     $this->configs["elements"] = $this->getName();
     $this->configs["language"] = $this->getLanguage();
     $this->configs["rootpath"] = $this->rootPath;
     $this->configs["area_width"] = isset($this->configs["width"]) ? $this->configs["width"] : $this->width;
     $this->configs["area_height"] = isset($this->configs["height"]) ? $this->configs["height"] : $this->height;
     $this->configs["fonts"] = $this->getFonts();
     require_once __DIR__ . "/tinymce.php";
     $this->editor = new TinyMCE($this->configs);
 }
예제 #12
0
 /**
  * Constructor
  *
  * @param array $configs Editor Options
  */
 public function __construct($configs)
 {
     $current_path = __FILE__;
     if (DIRECTORY_SEPARATOR !== '/') {
         $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path);
     }
     $this->rootPath = '/class/xoopseditor/tinymce';
     parent::__construct($configs);
     $this->configs['elements'] = $this->getName();
     $this->configs['language'] = $this->getLanguage();
     $this->configs['rootpath'] = $this->rootPath;
     $this->configs['area_width'] = isset($this->configs['width']) ? $this->configs['width'] : $this->width;
     $this->configs['area_height'] = isset($this->configs['height']) ? $this->configs['height'] : $this->height;
     $this->configs['fonts'] = $this->getFonts();
     require_once __DIR__ . '/tinymce.php';
     $this->editor = new TinyMCE($this->configs);
 }
예제 #13
0
 /**
  * Constructor
  *
  * @param array $configs Editor Options
  */
 function __construct($configs)
 {
     $this->rootPath = "/class/xoopseditor/ckeditor";
     parent::__construct($configs);
 }
예제 #14
0
 /**
  * Constructor
  *
  * @param string  $caption    Caption
  * @param string  $name       name attribute
  * @param string  $value      Initial text
  * @param integer $rows       Number of rows
  * @param integer $cols       Number of columns
  * @param string  $hiddentext Identifier for hidden Text
  * @param array   $options    Extra options
  */
 public function __construct($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array())
 {
     static $inLoop = 0;
     ++$inLoop;
     // Second loop, invalid, return directly
     if ($inLoop > 2) {
         return;
     }
     // Else, initialize
     parent::__construct($caption, $name, $value, $rows, $cols);
     $this->hiddenText = $hiddentext;
     if ($inLoop > 1) {
         return;
     }
     $xoops = \Xoops::getInstance();
     if (!isset($options['editor'])) {
         if ($editor = $xoops->getConfig('editor')) {
             $options['editor'] = $editor;
         }
     }
     if (!empty($this->htmlEditor) || !empty($options['editor'])) {
         $options['name'] = $this->getName();
         $options['value'] = $this->getValue();
         if (!empty($options['editor'])) {
             $this->htmlEditor = is_array($options['editor']) ? $options['editor'] : array($options['editor']);
         }
         if (count($this->htmlEditor) == 1) {
             $editor_handler = \XoopsEditorHandler::getInstance();
             $this->htmlEditor = $editor_handler->get($this->htmlEditor[0], $options);
             if ($inLoop > 1) {
                 $this->htmlEditor = null;
             }
         } else {
             list($class, $path) = $this->htmlEditor;
             include_once \XoopsBaseConfig::get('root-path') . $path;
             if (class_exists($class)) {
                 $this->htmlEditor = new $class($options);
             }
             if ($inLoop > 1) {
                 $this->htmlEditor = null;
             }
         }
     }
     $inLoop = 0;
 }