PluginProbe
Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits / 3.1.9
Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits v3.1.9
3.2.2 3.2.3 3.2.1 3.2.0 3.1.9 3.1.8 3.1.7 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.9 trunk 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.3 1.1.4 1.1.5 All 174 releases
master-addons / inc / admin / widget-builder / controls / wysiwyg.php

wysiwyg.php in Master Addons for Elementor – Elementor Addons, Widgets, Mega Menu Builder, Popup Builder, Widget Builder & Template Kits 3.1.9, at inc/admin/widget-builder/controls/wysiwyg.php

55 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace MasterAddons\Inc\Admin\WidgetBuilder\Controls;
3
4 use MasterAddons\Inc\Admin\WidgetBuilder\Controls\Control_Base;
5
6 defined('ABSPATH') || exit;
7
8 /**
9 * WYSIWYG Control
10 * Handles Elementor WYSIWYG (What You See Is What You Get) control type
11 * Rich text editor with formatting options
12 *
13 * Supported properties:
14 * - label: Control label
15 * - name: Field name (used for control key)
16 * - description: Description below field
17 * - default: Default value
18 *
19 * Common settings (handled by base class):
20 * - show_label: Show/hide label
21 * - label_block: Display label on separate line
22 * - dynamic: Enable dynamic content support
23 * - separator: Control separator position
24 * - condition: Conditional display logic
25 */
26 class Wysiwyg extends Control_Base {
27
28 public function get_type() {
29 return 'WYSIWYG';
30 }
31
32 public function build($control_key, $field) {
33 $label = !empty($field['label']) ? $field['label'] : 'Content';
34
35 // Check if responsive control
36 $is_responsive = isset($field['responsive']) && $field['responsive'];
37
38 // Build control header
39 $content = $this->build_control_header($control_key, $label, 'WYSIWYG', $is_responsive);
40
41 // WYSIWYG doesn't have specific properties beyond common ones
42 // Add common properties
43 $content .= $this->build_common_properties($field);
44
45 // Close control
46 $content .= $this->build_control_footer();
47
48 return $content;
49 }
50
51 protected function default_label() {
52 return 'Content';
53 }
54 }
55