Elementor\Widget_Text_Editor::_register_controls PHP Method

_register_controls() protected method

protected _register_controls ( )
    protected function _register_controls()
    {
        $this->start_controls_section('section_editor', ['label' => __('Text Editor', 'elementor')]);
        $this->add_control('editor', ['label' => '', 'type' => Controls_Manager::WYSIWYG, 'default' => __('I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'elementor')]);
        $this->end_controls_section();
        $this->start_controls_section('section_style', ['label' => __('Text Editor', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_responsive_control('align', ['label' => __('Alignment', 'elementor'), 'type' => Controls_Manager::CHOOSE, 'options' => ['left' => ['title' => __('Left', 'elementor'), 'icon' => 'align-left'], 'center' => ['title' => __('Center', 'elementor'), 'icon' => 'align-center'], 'right' => ['title' => __('Right', 'elementor'), 'icon' => 'align-right'], 'justify' => ['title' => __('Justified', 'elementor'), 'icon' => 'align-justify']], 'selectors' => ['{{WRAPPER}} .elementor-text-editor' => 'text-align: {{VALUE}};']]);
        $this->add_control('text_color', ['label' => __('Text Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'default' => '', 'selectors' => ['{{WRAPPER}}' => 'color: {{VALUE}};'], 'scheme' => ['type' => Scheme_Color::get_type(), 'value' => Scheme_Color::COLOR_3]]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'typography', 'scheme' => Scheme_Typography::TYPOGRAPHY_3]);
        $this->end_controls_section();
    }