Example #1
0
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $rows = 30, $cols = 20, $value = '', $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
     $this->addExtraClass('typography');
     $this->addExtraClass('htmleditor');
     self::include_js();
 }
Example #2
0
	/**
	 * @see TextareaField::__construct()
	 */
	public function __construct($name, $title = null, $value = '') {
		if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setCols() instead of constructor arguments');

		parent::__construct($name, $title, $value);
		
		self::include_js();
	}
 /**
  * Creates a new HTMLEditorField.
  * @see TextareaField::__construct()
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
  */
 public function __construct($name, $title = null, $value = '', $config = null)
 {
     parent::__construct($name, $title, $value);
     if ($config) {
         $this->setEditorConfig($config);
     }
     $this->setRows($this->config()->default_rows);
 }
 public function __construct($config, $name, $title = null, $rows = 30, $cols = 20, $value = '', $form = null)
 {
     // Skip the HtmlEditorField's constructor
     TextareaField::__construct($name, $title, $rows, $cols, $value, $form);
     $this->addExtraClass('typography');
     $this->addExtraClass("htmleditor{$config}");
     self::include_js($config);
 }
 public function __construct($name, $title = null, $extraAttributes = null, $rows = 5, $cols = 20, $value = "", $form = null)
 {
     if (is_array($extraAttributes)) {
         $this->extraAttributes = $extraAttributes;
     }
     $this->rows = $rows;
     $this->cols = $cols;
     parent::__construct($name, $title, $value, $form);
 }
 function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/tinymce.min.js');
     $lang = i18n::get_lang_from_locale(i18n::get_locale());
     if ($lang != 'en') {
         Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/langs/' . $lang . '.js');
     }
 }
	function __construct($name, $title = null, $config = array(), $rows = 5, $cols = 55, $value = "", $form = null) {
		parent::__construct($name, $title, $rows, $cols, $value, $form);
		$this->extraClasses = array('hidden');
		if(!empty($config)) {
			foreach($config as $k => $v) {
				if($k == "css") $this->css = $v;
				else if(array_key_exists($k, $this->controls))
					$this->controls[$k] = $v;
			}
		}
	}
 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     if ($this->getFileManager()) {
         FormExtraJquery::include_jquery();
     }
     Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/tinymce.min.js');
     $lang = i18n::get_lang_from_locale(i18n::get_locale());
     if ($lang != 'en') {
         Requirements::javascript(FORM_EXTRAS_PATH . '/javascript/tinymce/langs/' . $lang . '.js');
     }
 }
 /**
  * Creates a new HTMLEditorField.
  * @see TextareaField::__construct()
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  * @param string $config HTMLEditorConfig identifier to be used. Default to the active one.
  */
 public function __construct($name, $title = null, $value = '', $config = null)
 {
     parent::__construct($name, $title, $value);
     $this->editorConfig = $config ? $config : HtmlEditorConfig::get_active_identifier();
 }
Example #10
0
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     self::include_js();
 }
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $type = 'wiki', $rows = 30, $cols = 20, $value = '', $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
     $this->markupType = $type;
 }
 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     $this->setLimit(150);
 }
 /**
  * Constructor
  */
 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     // preload scenarios
     self::preloadScenarios();
 }
 function __construct($name, $title = null, $config = array(), $rows = 15, $cols = 55, $value = "", $form = null)
 {
     parent::__construct($name, $title, $rows, $cols, $value, $form);
 }
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     self::requirements();
 }
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     // Add CSS and JS requirements
     Requirements::css("trumbowyg-htmleditor/thirdparty/trumbowyg/ui/trumbowyg.min.css");
     Requirements::css("trumbowyg-htmleditor/css/TrumbowygHtmlEditorField.css");
     Requirements::javascript("framework/thirdparty/jquery/jquery.js");
     Requirements::javascript("trumbowyg-htmleditor/thirdparty/trumbowyg/trumbowyg.min.js");
 }
 /**
  * Constructor
  *
  * @param string $name The internal field name, passed to forms.
  * @param string $title The human-readable field label.
  * @param mixed $value The value of the field.
  */
 public function __construct($name, $title = null, $value = null)
 {
     parent::__construct($name, $title, $value);
     $this->addExtraClass('textarea');
 }
	/**
	 * Construct a new HtmlEditor field
	 */
	function __construct($name, $title = null, $rows = 20, $cols = 20, $value = "", $form = null) {
		parent::__construct($name, $title, $rows, $cols, $value, $form);
		$this->extraClass = 'typography';
	}