← All changes
|
modules/atomic-widgets/elements/atomic-button/atomic-button.php
+3
-1
4.1.0-dev3
→
4.2.4
View file →
| @@ -53,9 +53,10 @@ | ||
| 53 | 53 | ->default( [ |
| 54 | 54 | 'content' => String_Prop_Type::generate( __( 'Click here', 'elementor' ) ), |
| 55 | 55 | 'children' => [], |
| 56 | 56 | ] ) |
| 57 | - ->description( 'The text displayed on the button.' ), | |
| 57 | + ->description( 'The text displayed on the button.' ) | |
| 58 | + ->alias( 'content', 'label' ), | |
| 58 | 59 | |
| 59 | 60 | 'link' => Link_Prop_Type::make(), |
| 60 | 61 | |
| 61 | 62 | 'tag' => String_Prop_Type::make() |
| @@ -71,8 +72,9 @@ | ||
| 71 | 72 | protected function define_atomic_controls(): array { |
| 72 | 73 | return [ |
| 73 | 74 | Section::make() |
| 74 | 75 | ->set_label( __( 'Content', 'elementor' ) ) |
| 76 | + ->set_id( 'content' ) | |
| 75 | 77 | ->set_items( [ |
| 76 | 78 | Inline_Editing_Control::bind_to( 'text' ) |
| 77 | 79 | ->set_placeholder( __( 'Type your button text here', 'elementor' ) ) |
| 78 | 80 | ->set_label( __( 'Button text', 'elementor' ) ), |