Um im yform ein Textfeld mit dem Redactor zu haben, habe ich jeweils diese beiden Dateien in die jeweiligen Verzeichnisse kopiert:
ytemplate -> bootstrap -> value.textarea_wysiwyg.tpl.php
lib -> yform -> value -> wysiwyg.php
Das hat auch immer sehr gut funktioniert. Jetzt verwende ich aber den Redactor 2 und wollte daher beim File value.textarea_wysiwyg.tpl.php einfach die neue Klasse ergänzen (redactorEditor2-full):
Code: Alles auswählen
<?php echo $field_before; ?><textarea class="<?php echo $class_control ?> redactorEditor2-full" name="<?php echo $this->getFieldName() ?>" id="redactor_<?php echo $this->getFieldId() ?>" rows="<?php echo $rows; ?>" <?php echo $this->getAttributeElement('placeholder'), $this->getAttributeElement('pattern'), $this->getAttributeElement('required', true), $this->getAttributeElement('disabled', true), $this->getAttributeElement('readonly', true) ?>><?php echo htmlspecialchars(stripslashes($this->getValue())) ?></textarea>
Fatal error: Call to undefined method rex_yform_value_textarea_wysiwyg::getAttributeElement()
Zeile 47 ist die Zeile mit dem oben aufgeführten Code. Habe ich noch etwas vergessen?