@@ -16,9 +16,6 @@ public struct EditorConfiguration: Sendable {
16
16
public let shouldUsePlugins : Bool
17
17
/// Toggles visibility of the title field
18
18
public let shouldHideTitle : Bool
19
- /// If enabled, the editor automatically becomes focused when initialized
20
- /// with an empty content.
21
- public let shouldAutoFocus : Bool
22
19
/// Root URL for the site
23
20
public let siteURL : String
24
21
/// Root URL for the site API
@@ -45,7 +42,6 @@ public struct EditorConfiguration: Sendable {
45
42
shouldUseThemeStyles: Bool ,
46
43
shouldUsePlugins: Bool ,
47
44
shouldHideTitle: Bool ,
48
- shouldAutoFocus: Bool ,
49
45
siteURL: String ,
50
46
siteApiRoot: String ,
51
47
siteApiNamespace: [ String ] ,
@@ -62,7 +58,6 @@ public struct EditorConfiguration: Sendable {
62
58
self . shouldUseThemeStyles = shouldUseThemeStyles
63
59
self . shouldUsePlugins = shouldUsePlugins
64
60
self . shouldHideTitle = shouldHideTitle
65
- self . shouldAutoFocus = shouldAutoFocus
66
61
self . siteURL = siteURL
67
62
self . siteApiRoot = siteApiRoot
68
63
self . siteApiNamespace = siteApiNamespace
@@ -82,7 +77,6 @@ public struct EditorConfiguration: Sendable {
82
77
shouldUseThemeStyles: shouldUseThemeStyles,
83
78
shouldUsePlugins: shouldUsePlugins,
84
79
shouldHideTitle: shouldHideTitle,
85
- shouldAutoFocus: shouldAutoFocus,
86
80
siteURL: siteURL,
87
81
siteApiRoot: siteApiRoot,
88
82
siteApiNamespace: siteApiNamespace,
@@ -113,7 +107,6 @@ public struct EditorConfigurationBuilder {
113
107
private var shouldUseThemeStyles : Bool
114
108
private var shouldUsePlugins : Bool
115
109
private var shouldHideTitle : Bool
116
- private var shouldAutoFocus : Bool
117
110
private var siteURL : String
118
111
private var siteApiRoot : String
119
112
private var siteApiNamespace : [ String ]
@@ -131,7 +124,6 @@ public struct EditorConfigurationBuilder {
131
124
shouldUseThemeStyles: Bool = false ,
132
125
shouldUsePlugins: Bool = false ,
133
126
shouldHideTitle: Bool = false ,
134
- shouldAutoFocus: Bool = true ,
135
127
siteURL: String = " " ,
136
128
siteApiRoot: String = " " ,
137
129
siteApiNamespace: [ String ] = [ ] ,
@@ -148,7 +140,6 @@ public struct EditorConfigurationBuilder {
148
140
self . shouldUseThemeStyles = shouldUseThemeStyles
149
141
self . shouldUsePlugins = shouldUsePlugins
150
142
self . shouldHideTitle = shouldHideTitle
151
- self . shouldAutoFocus = shouldAutoFocus
152
143
self . siteURL = siteURL
153
144
self . siteApiRoot = siteApiRoot
154
145
self . siteApiNamespace = siteApiNamespace
@@ -201,12 +192,6 @@ public struct EditorConfigurationBuilder {
201
192
return copy
202
193
}
203
194
204
- public func setShouldAutoFocus( _ shouldAutoFocus: Bool ) -> EditorConfigurationBuilder {
205
- var copy = self
206
- copy. shouldAutoFocus = shouldAutoFocus
207
- return copy
208
- }
209
-
210
195
public func setSiteUrl( _ siteUrl: String ) -> EditorConfigurationBuilder {
211
196
var copy = self
212
197
copy. siteURL = siteUrl
@@ -286,7 +271,6 @@ public struct EditorConfigurationBuilder {
286
271
shouldUseThemeStyles: shouldUseThemeStyles,
287
272
shouldUsePlugins: shouldUsePlugins,
288
273
shouldHideTitle: shouldHideTitle,
289
- shouldAutoFocus: shouldAutoFocus,
290
274
siteURL: siteURL,
291
275
siteApiRoot: siteApiRoot,
292
276
siteApiNamespace: siteApiNamespace,
0 commit comments