| @@ -137,9 +137,9 @@ | ||
| 137 | 137 | 'type' => Controls_Manager::SELECT, |
| 138 | 138 | 'separator' => 'before', |
| 139 | 139 | 'options' => $text_columns, |
| 140 | 140 | 'selectors' => [ |
| 141 | - '{{WRAPPER}} .elementor-text-editor' => 'columns: {{VALUE}};', | |
| 141 | + '{{WRAPPER}}' => 'columns: {{VALUE}};', | |
| 142 | 142 | ], |
| 143 | 143 | ] |
| 144 | 144 | ); |
| 145 | 145 | |
| @@ -166,9 +166,9 @@ | ||
| 166 | 166 | 'step' => 0.1, |
| 167 | 167 | ], |
| 168 | 168 | ], |
| 169 | 169 | 'selectors' => [ |
| 170 | - '{{WRAPPER}} .elementor-text-editor' => 'column-gap: {{SIZE}}{{UNIT}};', | |
| 170 | + '{{WRAPPER}}' => 'column-gap: {{SIZE}}{{UNIT}};', | |
| 171 | 171 | ], |
| 172 | 172 | ] |
| 173 | 173 | ); |
| 174 | 174 | |
| @@ -205,9 +205,9 @@ | ||
| 205 | 205 | 'icon' => 'eicon-text-align-justify', |
| 206 | 206 | ], |
| 207 | 207 | ], |
| 208 | 208 | 'selectors' => [ |
| 209 | - '{{WRAPPER}} .elementor-text-editor' => 'text-align: {{VALUE}};', | |
| 209 | + '{{WRAPPER}}' => 'text-align: {{VALUE}};', | |
| 210 | 210 | ], |
| 211 | 211 | ] |
| 212 | 212 | ); |
| 213 | 213 | |
| @@ -235,8 +235,16 @@ | ||
| 235 | 235 | ], |
| 236 | 236 | ] |
| 237 | 237 | ); |
| 238 | 238 | |
| 239 | + $this->add_group_control( | |
| 240 | + Group_Control_Text_Shadow::get_type(), | |
| 241 | + [ | |
| 242 | + 'name' => 'text_shadow', | |
| 243 | + 'selector' => '{{WRAPPER}}', | |
| 244 | + ] | |
| 245 | + ); | |
| 246 | + | |
| 239 | 247 | $this->end_controls_section(); |
| 240 | 248 | |
| 241 | 249 | $this->start_controls_section( |
| 242 | 250 | 'section_drop_cap', |
| @@ -293,8 +301,16 @@ | ||
| 293 | 301 | ], |
| 294 | 302 | ] |
| 295 | 303 | ); |
| 296 | 304 | |
| 305 | + $this->add_group_control( | |
| 306 | + Group_Control_Text_Shadow::get_type(), | |
| 307 | + [ | |
| 308 | + 'name' => 'drop_cap_shadow', | |
| 309 | + 'selector' => '{{WRAPPER}} .elementor-drop-cap', | |
| 310 | + ] | |
| 311 | + ); | |
| 312 | + | |
| 297 | 313 | $this->add_control( |
| 298 | 314 | 'drop_cap_size', |
| 299 | 315 | [ |
| 300 | 316 | 'label' => __( 'Size', 'elementor' ), |
| @@ -395,13 +411,21 @@ | ||
| 395 | 411 | $editor_content = $this->get_settings_for_display( 'editor' ); |
| 396 | 412 | |
| 397 | 413 | $editor_content = $this->parse_text_editor( $editor_content ); |
| 398 | 414 | |
| 399 | - $this->add_render_attribute( 'editor', 'class', [ 'elementor-text-editor', 'elementor-clearfix' ] ); | |
| 415 | + if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { | |
| 416 | + $this->add_render_attribute( 'editor', 'class', [ 'elementor-text-editor', 'elementor-clearfix' ] ); | |
| 417 | + } | |
| 400 | 418 | |
| 401 | 419 | $this->add_inline_editing_attributes( 'editor', 'advanced' ); |
| 402 | 420 | ?> |
| 403 | - <div <?php echo $this->get_render_attribute_string( 'editor' ); ?>><?php echo $editor_content; ?></div> | |
| 421 | + <?php if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { ?> | |
| 422 | + <div <?php echo $this->get_render_attribute_string( 'editor' ); ?>> | |
| 423 | + <?php } ?> | |
| 424 | + <?php echo $editor_content; ?> | |
| 425 | + <?php if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { ?> | |
| 426 | + </div> | |
| 427 | + <?php } ?> | |
| 404 | 428 | <?php |
| 405 | 429 | } |
| 406 | 430 | |
| 407 | 431 | /** |
| @@ -427,12 +451,20 @@ | ||
| 427 | 451 | */ |
| 428 | 452 | protected function content_template() { |
| 429 | 453 | ?> |
| 430 | 454 | <# |
| 431 | - view.addRenderAttribute( 'editor', 'class', [ 'elementor-text-editor', 'elementor-clearfix' ] ); | |
| 455 | + <?php if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { ?> | |
| 456 | + view.addRenderAttribute( 'editor', 'class', [ 'elementor-text-editor', 'elementor-clearfix' ] ); | |
| 457 | + <?php } ?> | |
| 432 | 458 | |
| 433 | 459 | view.addInlineEditingAttributes( 'editor', 'advanced' ); |
| 434 | 460 | #> |
| 435 | - <div {{{ view.getRenderAttributeString( 'editor' ) }}}>{{{ settings.editor }}}</div> | |
| 461 | + <?php if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { ?> | |
| 462 | + <div {{{ view.getRenderAttributeString( 'editor' ) }}}> | |
| 463 | + <?php } ?> | |
| 464 | + {{{ settings.editor }}} | |
| 465 | + <?php if ( ! Plugin::$instance->experiments->is_feature_active( 'e_dom_optimization' ) ) { ?> | |
| 466 | + </div> | |
| 467 | + <?php } ?> | |
| 436 | 468 | <?php |
| 437 | 469 | } |
| 438 | 470 | } |