public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     $this->rows = 5;
     // The .htmleditor class enables TinyMCE
     $this->addExtraClass('htmleditor');
 }
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     $this->extraClasses[] = 'htmleditor';
     self::include_js();
 }
 /**
  * @see TextareaField::__construct()
  */
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     $this->extraClasses[] = 'htmleditor';
     HtmlEditorConfig::require_js();
     // when updating the resampled image, find the orginal.
     // ideally this would live server side in HtmlEditorField_Toolbar(), however
     // injecting it with a function would be overkill.
     Requirements::customScript("\n(function(\$) {\n\t\$.entwine('ss', function(\$) {\n\t\t\$('form.htmleditorfield-form').entwine({\n\t\t\tupdateFromEditor: function() {\t\t\n\t\t\t\tvar self = this, node = this.getSelection();\n\t\t\t\tif(node.is('img')) {\n\t\t\t\t\tmyfixurl = node.data('url') || node.attr('src');\n\t\t\t\t\tmyfixurl = myfixurl.replace('-10x', '');\n\t\t\t\t\tmyfixurl = myfixurl.replace(/_resampled\\/(.+)\\//, '');\n\t\t\t\t\tnode.attr('src', myfixurl);\n\t\t\t\t}\n\t\t\t\tthis.redraw();\n\t\t\t\tthis._super();\n\t\t\t},\n\t\t});\n\t});\n})(jQuery);");
 }
 public function __construct($name, $title = null, $value = '')
 {
     parent::__construct($name, $title, $value);
     HtmlEditorConfig::require_js();
     Requirements::customScript("ssTinyMceConfig.mode = 'specific_textareas';ssTinyMceConfig.editor_selector='frontendhtmleditor';tinyMCE.init(ssTinyMceConfig);");
 }