Add WYSIWYG (Visual) editor in version 3.0.2
-
Hello,
I found the soluce to implement WYSIWYG (Visual) editor in version 3.0.2 of your great plugin.
Edit file rtbs.php.
Lines 187 to 196 replace :
$main_group->add_group_field( $rtbs_tab_group, array( 'name' => '<span class="dashicons dashicons-edit"></span> Content', 'id' => $prefix . 'content', 'type' => 'textarea', 'attributes' => array( 'rows' => 8, ), 'row_classes' => 'de_first de_seventy de_textarea de_input', 'sanitization_cb' => false, ));
by :
$main_group->add_group_field( $rtbs_tab_group, array( 'name' => '<span class="dashicons dashicons-edit"></span> Content', 'id' => $prefix . 'content', 'type' => 'wysiwyg', 'options' => array( 'wpautop' => true, 'media_buttons' => false, 'teeny' => true, 'tinymce' => false, ), 'sanitization_cb' => false, ));
And Lines 427 and 431 replace :
$output .= do_shortcode(wpautop($tabs['_rtbs_content']));
by :
$output .= wpautop(do_shortcode($tabs['_rtbs_content']));
Enjoy ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add WYSIWYG (Visual) editor in version 3.0.2’ is closed to new replies.