@@ -25,7 +25,7 @@ define([
25
25
elementSelector : '> textarea' ,
26
26
stageSelector : '.pagebuilder-stage-wrapper' ,
27
27
pageBuilder : false ,
28
- visiblePageBuilder : false ,
28
+ visiblePageBuilder : true ,
29
29
isComponentInitialized : false ,
30
30
wysiwygConfigData : { } ,
31
31
pageBuilderEditButtonText : $t ( 'Edit with Page Builder' ) ,
@@ -38,10 +38,7 @@ define([
38
38
*/
39
39
initialize : function ( ) {
40
40
this . _super ( ) ;
41
-
42
- if ( ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ) {
43
- this . initPageBuilder ( ) ;
44
- }
41
+ this . initPageBuilder ( ) ;
45
42
46
43
return this ;
47
44
} ,
@@ -92,10 +89,6 @@ define([
92
89
selector : this . stageSelector
93
90
} , this . disableDomObserver . bind ( this ) ) ;
94
91
}
95
-
96
- if ( ! this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ) {
97
- this . visiblePageBuilder ( true ) ;
98
- }
99
92
} ,
100
93
101
94
/**
@@ -165,41 +158,13 @@ define([
165
158
} ) ;
166
159
} . bind ( this ) , 350 ) ;
167
160
}
168
-
169
- if ( this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ) {
170
- // Force full screen mode whilst the animation occurs
171
- this . transitionOut ( true ) ;
172
- // Trigger animation out
173
- this . transition ( false ) ;
174
-
175
- // Reset the transition out class and hide the stage
176
- _ . delay ( function ( ) {
177
- this . transitionOut ( false ) ;
178
- this . visiblePageBuilder ( false ) ;
179
- } . bind ( this ) , 185 ) ;
180
- }
181
161
} else if ( args . fullScreen ) {
182
162
if ( this . isWithinModal && this . modal ) {
183
163
this . modal . css ( {
184
164
transform : 'none' ,
185
165
transition : 'none'
186
166
} ) ;
187
167
}
188
-
189
- if ( this . wysiwygConfigData ( ) [ 'pagebuilder_button' ] ) {
190
- this . visiblePageBuilder ( true ) ;
191
-
192
- fullScreenDeferred . resolve ( ) ;
193
-
194
- /* eslint-disable max-depth */
195
- // If the stage has already rendered once we don't need to wait until animating the stage in
196
- if ( rendered ) {
197
- _ . defer ( function ( ) {
198
- this . transition ( true ) ;
199
- } . bind ( this ) ) ;
200
- }
201
- /* eslint-enable max-depth */
202
- }
203
168
}
204
169
} . bind ( this ) ) ;
205
170
0 commit comments