| @@ -257,10 +257,10 @@ | ||
| 257 | 257 | [ |
| 258 | 258 | 'label' => esc_html__( 'Alignment', 'elementor' ), |
| 259 | 259 | 'type' => Controls_Manager::CHOOSE, |
| 260 | 260 | 'options' => [ |
| 261 | - 'start' => [ | |
| 262 | - 'title' => esc_html__( 'Start', 'elementor' ), | |
| 261 | + 'left' => [ | |
| 262 | + 'title' => esc_html__( 'Left', 'elementor' ), | |
| 263 | 263 | 'icon' => 'eicon-text-align-left', |
| 264 | 264 | ], |
| 265 | 265 | 'center' => [ |
| 266 | 266 | 'title' => esc_html__( 'Center', 'elementor' ), |
| @@ -265,10 +265,10 @@ | ||
| 265 | 265 | 'center' => [ |
| 266 | 266 | 'title' => esc_html__( 'Center', 'elementor' ), |
| 267 | 267 | 'icon' => 'eicon-text-align-center', |
| 268 | 268 | ], |
| 269 | - 'end' => [ | |
| 270 | - 'title' => esc_html__( 'End', 'elementor' ), | |
| 269 | + 'right' => [ | |
| 270 | + 'title' => esc_html__( 'Right', 'elementor' ), | |
| 271 | 271 | 'icon' => 'eicon-text-align-right', |
| 272 | 272 | ], |
| 273 | 273 | 'justify' => [ |
| 274 | 274 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| @@ -274,13 +274,8 @@ | ||
| 274 | 274 | 'title' => esc_html__( 'Justified', 'elementor' ), |
| 275 | 275 | 'icon' => 'eicon-text-align-justify', |
| 276 | 276 | ], |
| 277 | 277 | ], |
| 278 | - 'classes' => 'elementor-control-start-end', | |
| 279 | - 'selectors_dictionary' => [ | |
| 280 | - 'left' => is_rtl() ? 'end' : 'start', | |
| 281 | - 'right' => is_rtl() ? 'start' : 'end', | |
| 282 | - ], | |
| 283 | 278 | 'selectors' => [ |
| 284 | 279 | '{{WRAPPER}}' => 'text-align: {{VALUE}};', |
| 285 | 280 | ], |
| 286 | 281 | 'separator' => 'after', |
| @@ -320,9 +315,9 @@ | ||
| 320 | 315 | 'max' => 20, |
| 321 | 316 | ], |
| 322 | 317 | ], |
| 323 | 318 | 'selectors' => [ |
| 324 | - '{{WRAPPER}} p' => 'margin-block-end: {{SIZE}}{{UNIT}}', | |
| 319 | + '{{WRAPPER}} p' => 'margin-bottom: {{SIZE}}{{UNIT}}', | |
| 325 | 320 | ], |
| 326 | 321 | ] |
| 327 | 322 | ); |
| 328 | 323 | |
| @@ -605,11 +600,10 @@ | ||
| 605 | 600 | ?> |
| 606 | 601 | <?php if ( $should_render_inline_editing ) { ?> |
| 607 | 602 | <div <?php $this->print_render_attribute_string( 'editor' ); ?>> |
| 608 | 603 | <?php } ?> |
| 609 | - <?php // PHPCS - DO NOT REMOVE THIS ECHO - THE MAIN TEXT OF A WIDGET SHOULD NOT BE ESCAPED! | |
| 610 | - echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 611 | - ?> | |
| 604 | + <?php // PHPCS - the main text of a widget should not be escaped. | |
| 605 | + echo $editor_content; // phpcs:ignore WordPress.Security.EscapeOutput ?> | |
| 612 | 606 | <?php if ( $should_render_inline_editing ) { ?> |
| 613 | 607 | </div> |
| 614 | 608 | <?php } ?> |
| 615 | 609 | <?php |
| @@ -635,19 +629,8 @@ | ||
| 635 | 629 | * |
| 636 | 630 | * @since 2.9.0 |
| 637 | 631 | * @access protected |
| 638 | 632 | */ |
| 639 | - public function render_markdown(): string { | |
| 640 | - $editor_content = $this->get_settings_for_display( 'editor' ); | |
| 641 | - $editor_content = $this->parse_text_editor( $editor_content ); | |
| 642 | - | |
| 643 | - if ( empty( $editor_content ) ) { | |
| 644 | - return ''; | |
| 645 | - } | |
| 646 | - | |
| 647 | - return \Elementor\Modules\MarkdownRender\Html_To_Markdown::convert( $editor_content ); | |
| 648 | - } | |
| 649 | - | |
| 650 | 633 | protected function content_template() { |
| 651 | 634 | ?> |
| 652 | 635 | <# |
| 653 | 636 | if ( '' === settings.editor ) { |