Exemple #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);
 }
 /**
  * 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;
 }
 /**
  * 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);
 }
Exemple #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;
 }
Exemple #5
0
 /**
  * renderValidationJS
  *
  * @return bool|string
  */
 public function renderValidationJS()
 {
     if ($this->htmlEditor && is_object($this->htmlEditor) && method_exists($this->htmlEditor, 'renderValidationJS')) {
         if (!isset($this->htmlEditor->isEnabled) || $this->htmlEditor->isEnabled) {
             return $this->htmlEditor->renderValidationJS();
         }
     }
     return parent::renderValidationJS();
 }
 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'];
 }
 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'];
 }
Exemple #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/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/";
 }
 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";
 }
Exemple #10
0
    public function render()
    {
        //
        $this->initHeader();
        $ret = '
<script type="text/javascript">
  $(document).ready(function() {
    $("#' . $this->getName() . '").rheditor()[0].focus();
  });
</script>
';
        $ret .= parent::render();
        return $ret;
    }
Exemple #11
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/";
 }
 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";
 }
Exemple #13
0
 /**
  * prepare HTML for output
  *
  * @return string HTML
  */
 public function render()
 {
     $ret = $this->editor->render();
     $ret .= parent::render();
     return $ret;
 }
Exemple #14
0
 /**
  * @param XoopsEditor $editor
  * @param array $options
  * @return void
  */
 function setConfig(XoopsEditor $editor, $options)
 {
     $editor->setConfig($options);
 }
Exemple #15
0
 /**
  * Constructor
  *
  * @param array $configs Editor Options
  */
 function __construct($configs)
 {
     $this->rootPath = "/class/xoopseditor/ckeditor";
     parent::__construct($configs);
 }