Tribe__Field::wysiwyg()
generate a wp_editor field
Return
(string) the field
Source
File: src/Tribe/Field.php
public function wysiwyg() {
$settings = array(
'teeny' => true,
'wpautop' => true,
);
ob_start();
wp_editor( html_entity_decode( ( $this->value ) ), $this->name, $settings );
$editor = ob_get_clean();
$field = $this->do_field_start();
$field .= $this->do_field_label();
$field .= $this->do_field_div_start();
$field .= $editor;
$field .= $this->do_screen_reader_label();
$field .= $this->do_field_div_end();
$field .= $this->do_field_end();
return $field;
}