Skip to content

Commit 7e588d2

Browse files
committed
fix: move use size presets by default to editor settings
1 parent d8a2699 commit 7e588d2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/welcome/admin.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const SEARCH_TREE = [
8585
__( 'Stackable Text as Default Block', i18n ),
8686
__( 'Design Library', i18n ),
8787
__( 'Stackable Settings', i18n ),
88+
__( 'Use Size Presets by Default', i18n ),
8889
__( 'Block Linking (Beta)', i18n ),
8990
],
9091
},
@@ -155,7 +156,6 @@ const SEARCH_TREE = [
155156
id: 'global-settings',
156157
children: [
157158
__( 'Force Typography Styles', i18n ),
158-
__( 'Use Size Presets by Default', i18n ),
159159
],
160160
},
161161
],
@@ -698,6 +698,17 @@ const EditorSettings = props => {
698698
} }
699699
help={ __( 'Adds a button on the top of the editor which gives access to Stackable settings. Note: You won\'t be able to access Stackable settings when this is disabled.', i18n ) }
700700
/>
701+
<AdminToggleSetting
702+
label={ __( 'Use Size Presets by Default', i18n ) }
703+
searchedSettings={ editor.children }
704+
value={ props.settings.stackable_use_size_presets_by_default }
705+
onChange={ value => {
706+
props.handleSettingsChange( { stackable_use_size_presets_by_default: value } ) // eslint-disable-line camelcase
707+
} }
708+
help={ __( 'If enabled, range controls will be on preset mode by default.', i18n ) }
709+
disabled={ __( 'Use custom values', i18n ) }
710+
enabled={ __( 'Use presets', i18n ) }
711+
/>
701712
<AdminToggleSetting
702713
label={ __( 'Block Linking (Beta)', i18n ) }
703714
searchedSettings={ editor.children }
@@ -1163,17 +1174,6 @@ const GlobalSettings = props => {
11631174
disabled={ __( 'Not forced', i18n ) }
11641175
enabled={ __( 'Force styles', i18n ) }
11651176
/>
1166-
<AdminToggleSetting
1167-
label={ __( 'Use Size Presets by Default', i18n ) }
1168-
searchedSettings={ globalSettings.children }
1169-
value={ props.settings.stackable_use_size_presets_by_default }
1170-
onChange={ value => {
1171-
props.handleSettingsChange( { stackable_use_size_presets_by_default: value } ) // eslint-disable-line camelcase
1172-
} }
1173-
help={ __( 'If enabled, range controls will be on preset mode by default.', i18n ) }
1174-
disabled={ __( 'Use custom values', i18n ) }
1175-
enabled={ __( 'Use presets', i18n ) }
1176-
/>
11771177
</div>
11781178
}
11791179
</>

0 commit comments

Comments
 (0)