Fossil SCM

Typo fixes in fileedit-page.md

stephan 2021-02-24 19:24 trunk
Commit d400f403f9447ef1072aee97ee7a15cb5a5a3a5a3d7278e4bcb733bdb7e90757
1 file changed +5 -5
--- www/fileedit-page.md
+++ www/fileedit-page.md
@@ -44,11 +44,11 @@
4444
policy, so Chrome without such an add-on will not suppress this
4545
header.
4646
- **Safari**: ???
4747
- **Other browsers**: ???
4848
49
-If `/filepage` shows an error message saying "CSRF violation," the
49
+If `/fileedit` shows an error message saying "CSRF violation," the
5050
problem is that the browser is not sending a `Referer` header to XHR
5151
connections. Fossil does not offer a way to disable its CSRF
5252
protections.
5353
5454
[referer]: https://en.wikipedia.org/wiki/HTTP_referer
@@ -137,11 +137,11 @@
137137
Exactly how long `localStorage` will survive, and how much it or
138138
`sessionStorage` can hold, is environment-dependent. `sessionStorage`
139139
will survive until the current browser tab is closed, but it survives
140140
across reloads of the same tab.
141141
142
-If `/filepage` determines that no persistent storage is available a
142
+If `/fileedit` determines that no persistent storage is available a
143143
warning is displayed on the editor page.
144144
145145
[html5storage]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
146146
147147
## <a id="power"></a> The Power is Yours, but...
@@ -204,11 +204,11 @@
204204
205205
The first line of the script just ensures that the expected JS-level
206206
infrastructure is loaded. It's only loaded in the `/fileedit` page and
207207
possibly pages added or "upgraded" since `/fileedit`'s introduction.
208208
209
-The part in the `if` block adds an event listener to the `/filepage`
209
+The part in the `if` block adds an event listener to the `/fileedit`
210210
app which gets called when the preview is refreshed. That event
211211
contains 3 properties:
212212
213213
- `previewMode`: a string describing the current preview mode: `wiki`
214214
(which includes Fossil-native wiki and markdown), `text`,
@@ -225,14 +225,14 @@
225225
the preview which explicitly have a CSS class named
226226
`language-`something, and then asks highlightjs to highlight them.
227227
228228
## <a id="editor"></a> Integrating a Custom Editor Widget
229229
230
-(These instructions also work for the `/wikiedit` page by eplacing
230
+(These instructions also work for the `/wikiedit` page by replacing
231231
"fileedit" with "wikiedit" in any strings or symbol names!)
232232
233
-It is possible to replace `/filepage`'s basic text-editing widget (a
233
+It is possible to replace `/fileedit`'s basic text-editing widget (a
234234
`textarea` element) with a fancy 3rd-party editor widget by following
235235
these instructions...
236236
237237
All JavaScript code which follows is assumed to be in a script tag
238238
similar to the one shown in the previous section:
239239
--- www/fileedit-page.md
+++ www/fileedit-page.md
@@ -44,11 +44,11 @@
44 policy, so Chrome without such an add-on will not suppress this
45 header.
46 - **Safari**: ???
47 - **Other browsers**: ???
48
49 If `/filepage` shows an error message saying "CSRF violation," the
50 problem is that the browser is not sending a `Referer` header to XHR
51 connections. Fossil does not offer a way to disable its CSRF
52 protections.
53
54 [referer]: https://en.wikipedia.org/wiki/HTTP_referer
@@ -137,11 +137,11 @@
137 Exactly how long `localStorage` will survive, and how much it or
138 `sessionStorage` can hold, is environment-dependent. `sessionStorage`
139 will survive until the current browser tab is closed, but it survives
140 across reloads of the same tab.
141
142 If `/filepage` determines that no persistent storage is available a
143 warning is displayed on the editor page.
144
145 [html5storage]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
146
147 ## <a id="power"></a> The Power is Yours, but...
@@ -204,11 +204,11 @@
204
205 The first line of the script just ensures that the expected JS-level
206 infrastructure is loaded. It's only loaded in the `/fileedit` page and
207 possibly pages added or "upgraded" since `/fileedit`'s introduction.
208
209 The part in the `if` block adds an event listener to the `/filepage`
210 app which gets called when the preview is refreshed. That event
211 contains 3 properties:
212
213 - `previewMode`: a string describing the current preview mode: `wiki`
214 (which includes Fossil-native wiki and markdown), `text`,
@@ -225,14 +225,14 @@
225 the preview which explicitly have a CSS class named
226 `language-`something, and then asks highlightjs to highlight them.
227
228 ## <a id="editor"></a> Integrating a Custom Editor Widget
229
230 (These instructions also work for the `/wikiedit` page by eplacing
231 "fileedit" with "wikiedit" in any strings or symbol names!)
232
233 It is possible to replace `/filepage`'s basic text-editing widget (a
234 `textarea` element) with a fancy 3rd-party editor widget by following
235 these instructions...
236
237 All JavaScript code which follows is assumed to be in a script tag
238 similar to the one shown in the previous section:
239
--- www/fileedit-page.md
+++ www/fileedit-page.md
@@ -44,11 +44,11 @@
44 policy, so Chrome without such an add-on will not suppress this
45 header.
46 - **Safari**: ???
47 - **Other browsers**: ???
48
49 If `/fileedit` shows an error message saying "CSRF violation," the
50 problem is that the browser is not sending a `Referer` header to XHR
51 connections. Fossil does not offer a way to disable its CSRF
52 protections.
53
54 [referer]: https://en.wikipedia.org/wiki/HTTP_referer
@@ -137,11 +137,11 @@
137 Exactly how long `localStorage` will survive, and how much it or
138 `sessionStorage` can hold, is environment-dependent. `sessionStorage`
139 will survive until the current browser tab is closed, but it survives
140 across reloads of the same tab.
141
142 If `/fileedit` determines that no persistent storage is available a
143 warning is displayed on the editor page.
144
145 [html5storage]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API
146
147 ## <a id="power"></a> The Power is Yours, but...
@@ -204,11 +204,11 @@
204
205 The first line of the script just ensures that the expected JS-level
206 infrastructure is loaded. It's only loaded in the `/fileedit` page and
207 possibly pages added or "upgraded" since `/fileedit`'s introduction.
208
209 The part in the `if` block adds an event listener to the `/fileedit`
210 app which gets called when the preview is refreshed. That event
211 contains 3 properties:
212
213 - `previewMode`: a string describing the current preview mode: `wiki`
214 (which includes Fossil-native wiki and markdown), `text`,
@@ -225,14 +225,14 @@
225 the preview which explicitly have a CSS class named
226 `language-`something, and then asks highlightjs to highlight them.
227
228 ## <a id="editor"></a> Integrating a Custom Editor Widget
229
230 (These instructions also work for the `/wikiedit` page by replacing
231 "fileedit" with "wikiedit" in any strings or symbol names!)
232
233 It is possible to replace `/fileedit`'s basic text-editing widget (a
234 `textarea` element) with a fancy 3rd-party editor widget by following
235 these instructions...
236
237 All JavaScript code which follows is assumed to be in a script tag
238 similar to the one shown in the previous section:
239

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button