File tree Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -200,21 +200,27 @@ public function admin_editor_script(): void {
200
200
true
201
201
);
202
202
203
- $ this ->assets_tools ->add_inline_script ( 'theme-admin-editor-script ' , 'const BFFEditorSettings = ' . json_encode ( array (
204
- 'disableAllBlocksStyles ' => apply_filters ( 'bff/editor/disable_all_blocks_styles ' , [
205
- 'core/separator ' ,
206
- 'core/quote ' ,
207
- 'core/pullquote ' ,
208
- 'core/table ' ,
209
- 'core/image '
210
- ] ),
211
- 'disabledBlocksStyles ' => apply_filters ( 'bff/editor/disabled_blocks_styles ' , [
212
- // 'core/button' => [ 'outline' ]
213
- ] ),
214
- 'allowedBlocksVariations ' => apply_filters ( 'bff/editor/allowed_blocks_variations ' , [
215
- 'core/embed ' => [ 'youtube ' , 'vimeo ' , 'dailymotion ' ],
216
- ] ),
217
- ) ), 'before ' );
203
+ $ this ->assets_tools ->add_inline_script (
204
+ 'theme-admin-editor-script ' ,
205
+ 'const BFFEditorSettings = ' . wp_json_encode (
206
+ [
207
+ 'disableAllBlocksStyles ' => apply_filters ( 'bff/editor/disable_all_blocks_styles ' , [
208
+ 'core/separator ' ,
209
+ 'core/quote ' ,
210
+ 'core/pullquote ' ,
211
+ 'core/table ' ,
212
+ 'core/image ' ,
213
+ ] ),
214
+ 'disabledBlocksStyles ' => apply_filters ( 'bff/editor/disabled_blocks_styles ' , [
215
+ // 'core/button' => [ 'outline' ]
216
+ ] ),
217
+ 'allowedBlocksVariations ' => apply_filters ( 'bff/editor/allowed_blocks_variations ' , [
218
+ 'core/embed ' => [ 'youtube ' , 'vimeo ' , 'dailymotion ' ],
219
+ ] ),
220
+ ]
221
+ ),
222
+ 'before '
223
+ );
218
224
219
225
$ this ->assets_tools ->enqueue_script ( 'theme-admin-editor-script ' );
220
226
}
You can’t perform that action at this time.
0 commit comments