PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 1.1.1
JetFormBuilder — Dynamic Blocks Form Builder v1.1.1
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / templates / fields / wysiwyg-field.php

wysiwyg-field.php in JetFormBuilder — Dynamic Blocks Form Builder 1.1.1, at templates/fields/wysiwyg-field.php

37 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WYSIWIG field template
4 */
5 if ( empty( $args['default'] ) ) {
6 $args['default'] = '';
7 }
8
9 $editor_id = 'wp_editor_' . $this->block_type->get_field_id( $args['name'] );
10 $editor = array(
11 'textarea_name' => $this->block_type->get_field_name( $args['name'] ),
12 'media_buttons' => false,
13 'textarea_rows' => 8,
14 'quicktags' => false,
15 'tinymce' => array(
16 'plugins' => 'lists,paste,tabfocus,wplink,wordpress',
17 'paste_as_text' => true,
18 'paste_auto_cleanup_on_paste' => true,
19 'paste_remove_spans' => true,
20 'paste_remove_styles' => true,
21 'paste_remove_styles_if_webkit' => true,
22 'paste_strip_class_attributes' => true,
23 'toolbar1' => 'bold,italic,|,bullist,numlist,|,link,unlink,|,undo,redo',
24 'toolbar2' => '',
25 'toolbar3' => '',
26 'toolbar4' => ''
27 ),
28 );
29
30 ?>
31 <div class="jet-form-builder__field-wrap">
32 <div class="jet-form-builder__field <?php echo $this->maybe_get_error_class( $args ); ?>" data-editor="<?php echo htmlspecialchars( json_encode( $editor ) ); ?>"><?php
33 wp_editor( $args['default'], $editor_id, $editor );
34 ?></div>
35 <?php echo $this->maybe_render_error( $args ); ?>
36 </div>
37