* @package MCMS\Components\Editor */ class EditorTextBase extends EditorBase { public static function getHandledDataType() { return 'text'; } public function resetCSSClass() { $this->setCSSClass('text'); } public function generate($parent) { $id = $this->getID(); $name = $this->getName(); $css = $this->getCSSClass(); $value = $this->getValue(); $maxsize = false; $size = false; $html = ''; $endJs = false; if($this->isRequired()) $endJs = ";\n"; return array('html' => $html, 'js_end' => $endJs); } }