markupeditor 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +168 -0
- package/bin/filetoolbar.css +28 -0
- package/bin/filetoolbar.js +126 -0
- package/bin/muedit.js +85 -0
- package/dist/custom-elements.json +4112 -0
- package/dist/markup-editor.js +25000 -0
- package/package.json +69 -0
- package/styles/markup.css +273 -0
- package/styles/markupeditor.css +3 -0
- package/styles/mirror.css +190 -0
- package/styles/toolbar.css +651 -0
|
@@ -0,0 +1,4112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "src/main.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "A web component and API for WYSIWYG HTML editing. The element is available as `<markup-editor>`. The API is available using the element property `MU`.",
|
|
12
|
+
"name": "MarkupEditorElement",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "editorContainer"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"attributes": [
|
|
20
|
+
{
|
|
21
|
+
"type": {
|
|
22
|
+
"text": "string"
|
|
23
|
+
},
|
|
24
|
+
"description": "HTML that should be displayed when the editor is empty.",
|
|
25
|
+
"name": "placeholder"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": {
|
|
29
|
+
"text": "string"
|
|
30
|
+
},
|
|
31
|
+
"description": "An HTML file whose contents should be loaded for the initial contents of the editor. If you also supply HTML within the <markup-editor> itself (e.g., <markup-editor><p>Hello, world</p></markupeditor>), the content of filename will take precedence.",
|
|
32
|
+
"name": "filename"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": {
|
|
36
|
+
"text": "string"
|
|
37
|
+
},
|
|
38
|
+
"description": "The relative path for image src attributes in the editor. By default, if `filename` is specified with a path, `base` will be set to the directory containing the file. For example, if filename is “demo/guide/guide.html”, `base` will be set to “demo/guide/” so that an image with `src=“myImage.png”` will load. If you want this image to load from the “resources” directory below \"demo/guide\", then set base to “demo/guide/resources/” (with a trailing slash).",
|
|
39
|
+
"name": "base"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": {
|
|
43
|
+
"text": "string"
|
|
44
|
+
},
|
|
45
|
+
"description": "A JavaScript file that should be loaded as a script within the <markup-editor> element. The script can reference the global MU for access to MarkupEditor functionality. For example, the script could contain code to create and register a MarkupDelegate to receive callbacks during editing, or define a custom ToolbarConfiguration.",
|
|
46
|
+
"name": "userscript"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": {
|
|
50
|
+
"text": "string"
|
|
51
|
+
},
|
|
52
|
+
"description": "A CSS file that should be linked within the <markup-editor> element to supplement the MarkupEditor base styling.",
|
|
53
|
+
"name": "userstyle"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": {
|
|
57
|
+
"text": "string"
|
|
58
|
+
},
|
|
59
|
+
"description": "The name of a MarkupDelegate that has been registered. See the documentation on MarkupDelegates for details on implementation, usage, and registration.",
|
|
60
|
+
"name": "delegate"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": {
|
|
64
|
+
"text": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "The name of a MessageHandler that has been registered. See the documemtation on MessageHandler for details.",
|
|
67
|
+
"name": "handler"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": {
|
|
71
|
+
"text": "string"
|
|
72
|
+
},
|
|
73
|
+
"description": "The name of a ToolbarConfig that has been registered. See the documentation on ToolbarConfig for details of customizing the toolbar configuration and registering configs.",
|
|
74
|
+
"name": "toolbar"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": {
|
|
78
|
+
"text": "string"
|
|
79
|
+
},
|
|
80
|
+
"description": "The name of a KeymapConfig that has been registered. See the documentation on KeymapConfig for details of customizing the keymap configuration and registering configs.",
|
|
81
|
+
"name": "keymap"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": {
|
|
85
|
+
"text": "string"
|
|
86
|
+
},
|
|
87
|
+
"description": "The name of a BehaviorConfig that has been registered. See the documentation on BehaviorConfig for details of customizing the behavior configuration and registering configs.",
|
|
88
|
+
"name": "behavior"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": {
|
|
92
|
+
"text": "string"
|
|
93
|
+
},
|
|
94
|
+
"description": "The name of a toolbar that has been registered, whose `menuItems` will be placed before the MarkupToolbar. See the documentation on Extending the Toolbar for details.",
|
|
95
|
+
"name": "prepend:"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": {
|
|
99
|
+
"text": "string"
|
|
100
|
+
},
|
|
101
|
+
"description": "The name of a toolbar that has been registered, whose `menuItems` will be placed after the MarkupToolbar. See the documentation on Extending the Toolbar for details.",
|
|
102
|
+
"name": "append"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"superclass": {
|
|
106
|
+
"name": "HTMLElement"
|
|
107
|
+
},
|
|
108
|
+
"tagName": "markup-editor",
|
|
109
|
+
"customElement": true
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"exports": [
|
|
113
|
+
{
|
|
114
|
+
"kind": "js",
|
|
115
|
+
"name": "MU",
|
|
116
|
+
"declaration": {
|
|
117
|
+
"name": "MU",
|
|
118
|
+
"module": "src/main.js"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"kind": "custom-element-definition",
|
|
123
|
+
"name": "markup-editor",
|
|
124
|
+
"declaration": {
|
|
125
|
+
"name": "MarkupEditorElement",
|
|
126
|
+
"module": "src/main.js"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "javascript-module",
|
|
133
|
+
"path": "src/markupeditor.js",
|
|
134
|
+
"declarations": [
|
|
135
|
+
{
|
|
136
|
+
"kind": "variable",
|
|
137
|
+
"name": "MU",
|
|
138
|
+
"type": {
|
|
139
|
+
"text": "object"
|
|
140
|
+
},
|
|
141
|
+
"default": "{ activeView, addButton, addCol, addDiv, addHeader, addRow, borderTable, cancelSearch, consoleLog, cutImage, deactivateSearch, deleteLink, deleteTableArea, doRedo, doUndo, emptyDocument, focus, focusOn, focused, getDataImages, getHTML, getHeight, getImageAttributes, getLinkAttributes, getSelectionState, getTestHTML, indent, insertImage, insertLink, insertTable, loadUserFiles, modifyImage, openImageDialog, openLinkDialog, outdent, padBottom, pasteHTML, pasteText, removeAllDivs, removeButton, removeDiv, resetSelection, savedDataImage, searchFor, setHTML, setStyle, setTestHTML, setTopLevelAttributes, testBlockquoteEnter, testExtractContents, testListEnter, testPasteHTMLPreprocessing, testPasteTextPreprocessing, toggleBold, toggleCode, toggleItalic, toggleListItem, toggleStrike, toggleSubscript, toggleSuperscript, toggleUnderline, // Helpers to create custom toolbar items MenuItem, Dropdown, DropdownSubmenu, cmdItem, renderGrouped, renderDropdownItems, toggleSearch, // Config access ToolbarConfig, KeymapConfig, BehaviorConfig, // Registry access registerAugmentation, registerConfig, registerDelegate, registerMessageHandler, }",
|
|
142
|
+
"description": "The object whose methods comprise the MarkupEditor API."
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"exports": [
|
|
146
|
+
{
|
|
147
|
+
"kind": "js",
|
|
148
|
+
"name": "MU",
|
|
149
|
+
"declaration": {
|
|
150
|
+
"name": "MU",
|
|
151
|
+
"module": "src/markupeditor.js"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"kind": "javascript-module",
|
|
158
|
+
"path": "src/markup.js",
|
|
159
|
+
"declarations": [
|
|
160
|
+
{
|
|
161
|
+
"kind": "function",
|
|
162
|
+
"name": "setTopLevelAttributes",
|
|
163
|
+
"parameters": [
|
|
164
|
+
{
|
|
165
|
+
"name": "jsonString",
|
|
166
|
+
"description": "The stringified object containing the attributes to set for the editor",
|
|
167
|
+
"type": {
|
|
168
|
+
"text": "string"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"description": "Called to set attributes to the editor div, typically to ,\nset spellcheck and autocorrect. Note that contenteditable \nshould not be set for the editor element, even if it is \nincluded in the jsonString attributes. The same attributes\nare used for contenteditable divs, and the attribute is \nrelevant in that case."
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"kind": "function",
|
|
176
|
+
"name": "loadUserFiles",
|
|
177
|
+
"parameters": [
|
|
178
|
+
{
|
|
179
|
+
"name": "scriptFile",
|
|
180
|
+
"description": "The filename for a script that should be loaded",
|
|
181
|
+
"type": {
|
|
182
|
+
"text": "string"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "cssFile",
|
|
187
|
+
"description": "The filename for a CSS style that should be linked",
|
|
188
|
+
"type": {
|
|
189
|
+
"text": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "target",
|
|
194
|
+
"default": "null",
|
|
195
|
+
"description": "The first element found with tag `target` will have the script or link added to it; default \"body\" for script, \"head\" for CSS",
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "string"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "nonce",
|
|
202
|
+
"default": "null",
|
|
203
|
+
"description": "The \"nonce\" attribute to be applied",
|
|
204
|
+
"type": {
|
|
205
|
+
"text": "string"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"description": "Called to load user script and CSS before loading html.\n\nThe scriptFile and cssFile are loaded in sequence, with the single 'loadedUserFiles'\ncallback only happening after their load events trigger. If neither scriptFile\nnor cssFile are specified, then the 'loadedUserFiles' callback happens anyway,\nsince this ends up driving the loading process further."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "function",
|
|
213
|
+
"name": "searchFor",
|
|
214
|
+
"parameters": [
|
|
215
|
+
{
|
|
216
|
+
"name": "text",
|
|
217
|
+
"description": "The string to search for in a case-insensitive manner.",
|
|
218
|
+
"type": {
|
|
219
|
+
"text": "string"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "direction",
|
|
224
|
+
"description": "Search direction, either `forward ` or `backward`.",
|
|
225
|
+
"type": {
|
|
226
|
+
"text": "string"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "activate",
|
|
231
|
+
"description": "Set to \"true\" to activate \"search mode\", where Enter/Shift-Enter = Search forward/backward.",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "\"true\" | \"false\""
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"description": "Search for `text` in `direction`.\n\nWhen text is empty, search is canceled.\n\nCAUTION: When `activate` is \"true\", search must be cancelled once started, or Enter \nwill be intercepted to mean searcher.searchForward()/searchBackward()",
|
|
238
|
+
"return": {
|
|
239
|
+
"type": {
|
|
240
|
+
"text": "object"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"kind": "function",
|
|
246
|
+
"name": "deactivateSearch",
|
|
247
|
+
"parameters": [
|
|
248
|
+
{
|
|
249
|
+
"name": "view",
|
|
250
|
+
"default": "null",
|
|
251
|
+
"description": "The view whose activeSearcher should be deactivated.",
|
|
252
|
+
"type": {
|
|
253
|
+
"text": "EditorView | null"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
],
|
|
257
|
+
"description": "Deactivate search mode, stop intercepting Enter to search."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "function",
|
|
261
|
+
"name": "cancelSearch",
|
|
262
|
+
"description": "Cancel searching, resetting search state."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"kind": "function",
|
|
266
|
+
"name": "pasteHTML",
|
|
267
|
+
"parameters": [
|
|
268
|
+
{
|
|
269
|
+
"name": "html",
|
|
270
|
+
"description": "The HTML to be pasted",
|
|
271
|
+
"type": {
|
|
272
|
+
"text": "string"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "event",
|
|
277
|
+
"description": "A mocked ClipboardEvent for testing",
|
|
278
|
+
"type": {
|
|
279
|
+
"text": "ClipboardEvent | bull"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"description": "Paste html at the selection, replacing the selection as-needed."
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"kind": "function",
|
|
287
|
+
"name": "pasteText",
|
|
288
|
+
"parameters": [
|
|
289
|
+
{
|
|
290
|
+
"name": "html",
|
|
291
|
+
"description": "The HTML to be pasted",
|
|
292
|
+
"type": {
|
|
293
|
+
"text": "string"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "event",
|
|
298
|
+
"description": "A mocked ClipboardEvent for testing",
|
|
299
|
+
"type": {
|
|
300
|
+
"text": "ClipboardEvent | bull"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"description": "Do a custom paste operation of \"text only\", which we will extract from the html\nourselves. First we get a node that conforms to the schema, which by definition \nonly includes elements in a form we recognize, no spans, styles, etc.\nThe trick here is that we want to use the same code to paste text as we do for\nHTML, but we want to paste something that is the MarkupEditor-equivalent of\nunformatted text."
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "function",
|
|
308
|
+
"name": "emptyDocument",
|
|
309
|
+
"description": "Clean out the document and replace it with an empty paragraph"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"kind": "function",
|
|
313
|
+
"name": "emptyHTML",
|
|
314
|
+
"description": "Return the HTML that is contained in an empty document.",
|
|
315
|
+
"return": {
|
|
316
|
+
"type": {
|
|
317
|
+
"text": "string"
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"kind": "function",
|
|
323
|
+
"name": "getDataImages",
|
|
324
|
+
"description": "Return an array of `src` attributes for images that are encoded as data, empty if there are none.",
|
|
325
|
+
"return": {
|
|
326
|
+
"type": {
|
|
327
|
+
"text": "Array<string>"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"kind": "function",
|
|
333
|
+
"name": "savedDataImage",
|
|
334
|
+
"parameters": [
|
|
335
|
+
{
|
|
336
|
+
"name": "oldSrc",
|
|
337
|
+
"description": "Some or all of the original src for the image",
|
|
338
|
+
"type": {
|
|
339
|
+
"text": "string"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"name": "newSrc",
|
|
344
|
+
"description": "The src that should replace the old src",
|
|
345
|
+
"type": {
|
|
346
|
+
"text": "string"
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"description": "We saved an image at a new location or translated it from data to a file reference, \nso we need to update the document to reflect it."
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"kind": "function",
|
|
354
|
+
"name": "getHTML",
|
|
355
|
+
"parameters": [
|
|
356
|
+
{
|
|
357
|
+
"name": "pretty",
|
|
358
|
+
"default": "'true'",
|
|
359
|
+
"description": "Set to \"true\" to format nicely for reading.",
|
|
360
|
+
"type": {
|
|
361
|
+
"text": "string"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "clean",
|
|
366
|
+
"default": "'true'",
|
|
367
|
+
"description": "Set to \"true\" to remove spans and empty text nodes first.",
|
|
368
|
+
"type": {
|
|
369
|
+
"text": "string"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "divID",
|
|
374
|
+
"description": "The ID for the DIV to return HTML from.",
|
|
375
|
+
"type": {
|
|
376
|
+
"text": "string"
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"description": "Get the contents of the div with id `divID` or of the full doc.\n\nNote: Clean is needed to avoid the selected ResizableImage from being\npassed-back with spans around it, which is what are used internally to\nrepresent the resizing handles and box around the selected image.\nHowever, this content of the DOM is only for visualization within the\nMarkupEditor and should not be included with the HTML contents. It is\navailable here with clean !== true as an option in case it's needed \nfor debugging.",
|
|
381
|
+
"return": {
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "string"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"kind": "function",
|
|
389
|
+
"name": "setHTML",
|
|
390
|
+
"parameters": [
|
|
391
|
+
{
|
|
392
|
+
"name": "contents",
|
|
393
|
+
"description": "The HTML for the editor",
|
|
394
|
+
"type": {
|
|
395
|
+
"text": "string"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"name": "focusAfterLoad",
|
|
400
|
+
"default": "true",
|
|
401
|
+
"description": "Whether we should focus after load",
|
|
402
|
+
"type": {
|
|
403
|
+
"text": "boolean"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "base",
|
|
408
|
+
"description": "Value for base element for resolving relative src and hrefs",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "string"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "editorView",
|
|
415
|
+
"description": "The EditorView to set HTML for, `activeView()` default",
|
|
416
|
+
"type": {
|
|
417
|
+
"text": "EditorView"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"description": "Set the contents of the editor.\n\nThe exported placeholderText is set after setting the contents."
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"kind": "function",
|
|
425
|
+
"name": "getHeight",
|
|
426
|
+
"description": "Return the height of the editor element that encloses the text.\n\nThe padding-block is set in CSS to allow touch selection outside of text on iOS.\nAn unfortunate side-effect of that setting is that getBoundingClientRect() returns\na height that has nothing to do with the actual text, because it's been padded.\nA workaround for this is to get the computed style for editor using\nwindow.getComputedStyle(editor, null), and then asking that for the height. It does\nnot include padding. This kind of works, except that I found the height changed as\nsoon as I add a single character to the text. So, for example, it shows 21px when it\nopens with just a single `<p>Foo</p>`, but once you add a character to the text, the\nheight shows up as 36px. If you remove padding-block, then the behavior goes away.\nTo work around the problem, we set the padding block to 0 before getting height, and\nthen set it back afterward. With this change, both the touch-outside-of-text works\nand the height is reported accurately. Height needs to be reported accurately for\nauto-sizing of a WKWebView based on its contents."
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"kind": "function",
|
|
430
|
+
"name": "padBottom",
|
|
431
|
+
"parameters": [
|
|
432
|
+
{
|
|
433
|
+
"name": "fullHeight",
|
|
434
|
+
"description": "The full height of the screen to be padded-to",
|
|
435
|
+
"type": {
|
|
436
|
+
"text": "string"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
"description": "Pad the bottom of the text in editor to fill fullHeight.\n\nSetting padBottom pads the editor all the way to the bottom, so that the\nfocus area occupies the entire view. This allows long-press on iOS to bring up the\ncontext menu anywhere on the screen, even when text only occupies a small portion\nof the screen."
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"kind": "function",
|
|
444
|
+
"name": "focus",
|
|
445
|
+
"description": "Focus immediately, leaving range alone."
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "function",
|
|
449
|
+
"name": "resetSelection",
|
|
450
|
+
"description": "Reset the selection to the beginning of the document."
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"kind": "function",
|
|
454
|
+
"name": "addDiv",
|
|
455
|
+
"parameters": [
|
|
456
|
+
{
|
|
457
|
+
"name": "id",
|
|
458
|
+
"description": "The id of the dive to add",
|
|
459
|
+
"type": {
|
|
460
|
+
"text": "string"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "parentId",
|
|
465
|
+
"description": "The id of the parent for this div",
|
|
466
|
+
"type": {
|
|
467
|
+
"text": "string"
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "cssClass",
|
|
472
|
+
"description": "The class to assign to this div",
|
|
473
|
+
"type": {
|
|
474
|
+
"text": "string"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "attributesJSON",
|
|
479
|
+
"description": "A stringified object containing the editable attributes",
|
|
480
|
+
"type": {
|
|
481
|
+
"text": "string"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "buttonGroupJSON",
|
|
486
|
+
"description": "A stringified object containing a group of buttons in this div",
|
|
487
|
+
"type": {
|
|
488
|
+
"text": "string"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "htmlContents",
|
|
493
|
+
"description": "The inner HTML to place in this div",
|
|
494
|
+
"type": {
|
|
495
|
+
"text": "string"
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"description": "Add a div with id to parentId.\n\nNote that divs that contain a static button group are created in a single call that includes \nthe buttonGroupJSON. However, button groups can also be added and removed dynamically.\nIn that case, a button group div is added to a parent div using this call, and the parent has to \nalready exist so that we can find it."
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"kind": "function",
|
|
503
|
+
"name": "removeDiv",
|
|
504
|
+
"parameters": [
|
|
505
|
+
{
|
|
506
|
+
"name": "id",
|
|
507
|
+
"description": "The id of the div to remove",
|
|
508
|
+
"type": {
|
|
509
|
+
"text": "string"
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"description": "Remove the div with the given id, and restore the selection to what it was before it is removed."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"kind": "function",
|
|
517
|
+
"name": "addButton",
|
|
518
|
+
"parameters": [
|
|
519
|
+
{
|
|
520
|
+
"name": "id",
|
|
521
|
+
"description": "The element ID of the button that will be added.",
|
|
522
|
+
"type": {
|
|
523
|
+
"text": "string"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "parentId",
|
|
528
|
+
"description": "The element ID of the parent DIV to place the button in.",
|
|
529
|
+
"type": {
|
|
530
|
+
"text": "string"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "cssClass",
|
|
535
|
+
"description": "The CSS class of the button.",
|
|
536
|
+
"type": {
|
|
537
|
+
"text": "string"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "label",
|
|
542
|
+
"description": "The label for the button.",
|
|
543
|
+
"type": {
|
|
544
|
+
"text": "string"
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
]
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"kind": "function",
|
|
551
|
+
"name": "removeButton",
|
|
552
|
+
"parameters": [
|
|
553
|
+
{
|
|
554
|
+
"name": "id",
|
|
555
|
+
"description": "The ID of the button to be removed.",
|
|
556
|
+
"type": {
|
|
557
|
+
"text": "string"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
],
|
|
561
|
+
"description": "Remove the HTMLButton element with the given `id`."
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"kind": "function",
|
|
565
|
+
"name": "focusOn",
|
|
566
|
+
"parameters": [
|
|
567
|
+
{
|
|
568
|
+
"name": "id",
|
|
569
|
+
"description": "The ID of the DIV to focus on.",
|
|
570
|
+
"type": {
|
|
571
|
+
"text": "string"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
],
|
|
575
|
+
"description": "Focus on the DIV with `id`."
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"kind": "function",
|
|
579
|
+
"name": "removeAllDivs",
|
|
580
|
+
"description": "Remove all divs in the document."
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"kind": "function",
|
|
584
|
+
"name": "toggleBold",
|
|
585
|
+
"description": "Toggle the selection to/from bold."
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"kind": "function",
|
|
589
|
+
"name": "toggleItalic",
|
|
590
|
+
"description": "Toggle the selection to/from italic."
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"kind": "function",
|
|
594
|
+
"name": "toggleUnderline",
|
|
595
|
+
"description": "Toggle the selection to/from underline."
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"kind": "function",
|
|
599
|
+
"name": "toggleStrike",
|
|
600
|
+
"description": "Toggle the selection to/from strikethrough."
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"kind": "function",
|
|
604
|
+
"name": "toggleCode",
|
|
605
|
+
"description": "Toggle the selection to/from code."
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"kind": "function",
|
|
609
|
+
"name": "toggleSubscript",
|
|
610
|
+
"description": "Toggle the selection to/from subscript."
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"kind": "function",
|
|
614
|
+
"name": "toggleSuperscript",
|
|
615
|
+
"description": "Toggle the selection to/from superscript."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"kind": "function",
|
|
619
|
+
"name": "toggleFormatCommand",
|
|
620
|
+
"parameters": [
|
|
621
|
+
{
|
|
622
|
+
"name": "type"
|
|
623
|
+
}
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"kind": "function",
|
|
628
|
+
"name": "setStyle",
|
|
629
|
+
"parameters": [
|
|
630
|
+
{
|
|
631
|
+
"name": "style",
|
|
632
|
+
"description": "One of the styles P or H1-H6 to set the selection to.",
|
|
633
|
+
"type": {
|
|
634
|
+
"text": "string"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
"description": "Set the paragraph style at the selection to `style`"
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"kind": "function",
|
|
642
|
+
"name": "toggleListItem",
|
|
643
|
+
"parameters": [
|
|
644
|
+
{
|
|
645
|
+
"name": "listType",
|
|
646
|
+
"description": "The kind of list we want the list item to be in if we are turning it on or changing it.",
|
|
647
|
+
"type": {
|
|
648
|
+
"text": "string"
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"description": "Turn the list tag on and off for the selection, doing the right thing\nfor different cases of selection.\n\nIf the selection is in a list of type `listType`, then outdent the \nitems in the selection.\n\nIf the selection is in a list type that is different than `listType`,\nthen wrap it in a new list.\n\nWe use a single command returned by `multiWrapInList` because the command \ncan be assigned to a single button in JavaScript."
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
"kind": "function",
|
|
656
|
+
"name": "indent",
|
|
657
|
+
"description": "Do a context-sensitive indent.\n\nIf in a list, indent the item to a more nested level in the list if appropriate.\nIf in a blockquote, add another blockquote to indent further.\nElse, put into a blockquote to indent."
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"kind": "function",
|
|
661
|
+
"name": "indentCommand"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"kind": "function",
|
|
665
|
+
"name": "outdent",
|
|
666
|
+
"description": "Do a context-sensitive outdent.\n\nIf in a list, outdent the item to a less nested level in the list if appropriate.\nIf in a blockquote, remove a blockquote to outdent further.\nElse, do nothing.\n\nNote that outdenting of a top-level list with a sublist doesn't work. TBH, I'm not sure why, \nbut liftTarget returns null at the top-level in that case. As a result, the outdenting has \nto be done at least twice, the first of which splits the sublist from the top level. When this \nhappens, we should probably just do the equivalent of toggleListType."
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "function",
|
|
670
|
+
"name": "outdentCommand"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"kind": "function",
|
|
674
|
+
"name": "getSelectionState",
|
|
675
|
+
"description": "Populate a dictionary of properties about the current selection\nand return it in a JSON form. This is the primary means that the\nfind out what the selection is in the document, so we\ncan tell if the selection is in a bolded word or a list or a table, etc.",
|
|
676
|
+
"return": {
|
|
677
|
+
"type": {
|
|
678
|
+
"text": "string"
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"kind": "function",
|
|
684
|
+
"name": "getLinkAttributes",
|
|
685
|
+
"description": "Return the link attributes at the selection.",
|
|
686
|
+
"return": {
|
|
687
|
+
"type": {
|
|
688
|
+
"text": "object"
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"kind": "function",
|
|
694
|
+
"name": "getImageAttributes",
|
|
695
|
+
"parameters": [
|
|
696
|
+
{
|
|
697
|
+
"name": "state"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Return the image attributes at the selection",
|
|
701
|
+
"return": {
|
|
702
|
+
"type": {
|
|
703
|
+
"text": "object"
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"kind": "function",
|
|
709
|
+
"name": "paragraphStyle",
|
|
710
|
+
"parameters": [
|
|
711
|
+
{
|
|
712
|
+
"name": "state"
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"kind": "function",
|
|
718
|
+
"name": "isIndented",
|
|
719
|
+
"parameters": [
|
|
720
|
+
{
|
|
721
|
+
"name": "activeState"
|
|
722
|
+
}
|
|
723
|
+
]
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"kind": "function",
|
|
727
|
+
"name": "searchedCallback",
|
|
728
|
+
"parameters": [
|
|
729
|
+
{
|
|
730
|
+
"name": "element"
|
|
731
|
+
}
|
|
732
|
+
]
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"kind": "function",
|
|
736
|
+
"name": "activateSearchCallback",
|
|
737
|
+
"parameters": [
|
|
738
|
+
{
|
|
739
|
+
"name": "element"
|
|
740
|
+
}
|
|
741
|
+
]
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"kind": "function",
|
|
745
|
+
"name": "deactivateSearchCallback",
|
|
746
|
+
"parameters": [
|
|
747
|
+
{
|
|
748
|
+
"name": "element"
|
|
749
|
+
}
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"kind": "function",
|
|
754
|
+
"name": "focused",
|
|
755
|
+
"parameters": [
|
|
756
|
+
{
|
|
757
|
+
"name": "element",
|
|
758
|
+
"description": "The HTML element whose root node should become active",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "HTMLElement"
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
"description": "Set the active document and report focus."
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"kind": "function",
|
|
768
|
+
"name": "setTestHTML",
|
|
769
|
+
"parameters": [
|
|
770
|
+
{
|
|
771
|
+
"name": "contents",
|
|
772
|
+
"description": "The HTML for the editor",
|
|
773
|
+
"type": {
|
|
774
|
+
"text": "string"
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"name": "sel",
|
|
779
|
+
"description": "An embedded character in contents marking selection point(s)",
|
|
780
|
+
"type": {
|
|
781
|
+
"text": "string"
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
"description": "Set the HTML `contents` and select the text identified by `sel`, removing the \n`sel` markers in the process.\n\nNote that because we run multiple tests against a given view, and we use setTestHTML\nto set the contents, we need to reset the view state completely each time. Otherwise, \nthe history can be left in a state where an undo will work because the previous test\nexecuted redo."
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"kind": "function",
|
|
789
|
+
"name": "getTestHTML",
|
|
790
|
+
"parameters": [
|
|
791
|
+
{
|
|
792
|
+
"name": "sel",
|
|
793
|
+
"description": "An embedded character in contents indicating selection point(s)",
|
|
794
|
+
"type": {
|
|
795
|
+
"text": "string"
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
],
|
|
799
|
+
"description": "Get the HTML contents and mark the selection from/to using the text identified by `sel`."
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
"kind": "function",
|
|
803
|
+
"name": "doUndo",
|
|
804
|
+
"description": "Undo the previous action."
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"kind": "function",
|
|
808
|
+
"name": "doRedo",
|
|
809
|
+
"description": "Redo the previously undone action."
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"kind": "function",
|
|
813
|
+
"name": "testBlockquoteEnter",
|
|
814
|
+
"description": "For testing purposes, invoke _doBlockquoteEnter programmatically.\n\nTODO: Implement"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"kind": "function",
|
|
818
|
+
"name": "testListEnter",
|
|
819
|
+
"description": "For testing purposes, invoke the splitCommand programmatically."
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "function",
|
|
823
|
+
"name": "testExtractContents",
|
|
824
|
+
"description": "For testing purposes, invoke extractContents() on the selected range\nto make sure the selection is as expected.\n\nTODO: Implement"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"kind": "function",
|
|
828
|
+
"name": "testPasteHTMLPreprocessing",
|
|
829
|
+
"parameters": [
|
|
830
|
+
{
|
|
831
|
+
"name": "html",
|
|
832
|
+
"description": "The HTML to paste",
|
|
833
|
+
"type": {
|
|
834
|
+
"text": "string"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
],
|
|
838
|
+
"description": "For testing purposes, create a ProseMirror Node that conforms to the \nMarkupEditor schema and return the resulting html as a string. \nTesting in this way lets us do simple pasteHTML tests with\nclean HTML and test the effect of schema-conformance on HTML contents\nseparately. The html passed here is (typically) obtained from the paste \nbuffer."
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"kind": "function",
|
|
842
|
+
"name": "testPasteTextPreprocessing",
|
|
843
|
+
"parameters": [
|
|
844
|
+
{
|
|
845
|
+
"name": "html",
|
|
846
|
+
"description": "The HTML to paste",
|
|
847
|
+
"type": {
|
|
848
|
+
"text": "string"
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
"description": "Use the same approach as testPasteHTMLPreprocessing, but augment with \n_minimalHTML to get a MarkupEditor-equivalent of unformatted text."
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"kind": "function",
|
|
856
|
+
"name": "insertLink",
|
|
857
|
+
"parameters": [
|
|
858
|
+
{
|
|
859
|
+
"name": "url",
|
|
860
|
+
"description": "The url/href to use for the link",
|
|
861
|
+
"type": {
|
|
862
|
+
"text": "string"
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"description": "Insert a link to url. When the selection is collapsed, the url is inserted\nat the selection point as a link.\n\nWhen done, leave the link selected."
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"kind": "function",
|
|
870
|
+
"name": "insertLinkCommand",
|
|
871
|
+
"parameters": [
|
|
872
|
+
{
|
|
873
|
+
"name": "url"
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"kind": "function",
|
|
879
|
+
"name": "insertInternalLinkCommand",
|
|
880
|
+
"parameters": [
|
|
881
|
+
{
|
|
882
|
+
"name": "hTag"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"name": "index"
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"kind": "function",
|
|
891
|
+
"name": "deleteLink",
|
|
892
|
+
"description": "Remove the link at the selection, maintaining the same selection.\n\nThe selection can be at any point within the link or contain the full link, but cannot include \nareas outside of the link."
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"kind": "function",
|
|
896
|
+
"name": "deleteLinkCommand"
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"kind": "function",
|
|
900
|
+
"name": "selectFullLink",
|
|
901
|
+
"parameters": [
|
|
902
|
+
{
|
|
903
|
+
"name": "view"
|
|
904
|
+
}
|
|
905
|
+
]
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"kind": "function",
|
|
909
|
+
"name": "insertImage",
|
|
910
|
+
"parameters": [
|
|
911
|
+
{
|
|
912
|
+
"name": "src",
|
|
913
|
+
"description": "The url of the image.",
|
|
914
|
+
"type": {
|
|
915
|
+
"text": "string"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"name": "alt",
|
|
920
|
+
"description": "The alt text describing the image.",
|
|
921
|
+
"type": {
|
|
922
|
+
"text": "string"
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
],
|
|
926
|
+
"description": "Insert the image at src with alt text, signaling state changed when done loading.\nWe leave the selection after the inserted image."
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"kind": "function",
|
|
930
|
+
"name": "insertImageCommand",
|
|
931
|
+
"parameters": [
|
|
932
|
+
{
|
|
933
|
+
"name": "src"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "alt"
|
|
937
|
+
}
|
|
938
|
+
]
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "function",
|
|
942
|
+
"name": "modifyImage",
|
|
943
|
+
"parameters": [
|
|
944
|
+
{
|
|
945
|
+
"name": "src",
|
|
946
|
+
"description": "The url of the image.",
|
|
947
|
+
"type": {
|
|
948
|
+
"text": "string"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "alt",
|
|
953
|
+
"description": "The alt text describing the image.",
|
|
954
|
+
"type": {
|
|
955
|
+
"text": "string"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
"description": "Modify the attributes of the image at selection."
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"kind": "function",
|
|
963
|
+
"name": "modifyImageCommand",
|
|
964
|
+
"parameters": [
|
|
965
|
+
{
|
|
966
|
+
"name": "src"
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
"name": "alt"
|
|
970
|
+
}
|
|
971
|
+
]
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"kind": "function",
|
|
975
|
+
"name": "cutImage",
|
|
976
|
+
"description": "Cut the selected image from the document.\n\nCopy before deleting the image is done via a callback, which avoids\npotential CORS issues. Similarly, copying of an image (e.g., Ctrl-C) is all done \nby the side holding the copy buffer, not via JavaScript."
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"kind": "function",
|
|
980
|
+
"name": "insertTable",
|
|
981
|
+
"parameters": [
|
|
982
|
+
{
|
|
983
|
+
"name": "rows",
|
|
984
|
+
"description": "The number of rows in the table to be created.",
|
|
985
|
+
"type": {
|
|
986
|
+
"text": "number"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"name": "cols",
|
|
991
|
+
"description": "The number of columns in the table to be created.",
|
|
992
|
+
"type": {
|
|
993
|
+
"text": "number"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
],
|
|
997
|
+
"description": "Insert an empty table with the specified number of rows and cols."
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "function",
|
|
1001
|
+
"name": "insertTableCommand",
|
|
1002
|
+
"parameters": [
|
|
1003
|
+
{
|
|
1004
|
+
"name": "rows"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "cols"
|
|
1008
|
+
}
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"kind": "function",
|
|
1013
|
+
"name": "addRow",
|
|
1014
|
+
"parameters": [
|
|
1015
|
+
{
|
|
1016
|
+
"name": "direction",
|
|
1017
|
+
"description": "Either 'BEFORE' or 'AFTER' to identify where the new row goes relative to the selection.",
|
|
1018
|
+
"type": {
|
|
1019
|
+
"text": "string"
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
"description": "Add a row before or after the current selection, whether it's in the header or body.\nFor rows, AFTER = below; otherwise above."
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"kind": "function",
|
|
1027
|
+
"name": "addRowCommand",
|
|
1028
|
+
"parameters": [
|
|
1029
|
+
{
|
|
1030
|
+
"name": "direction"
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"kind": "function",
|
|
1036
|
+
"name": "addCol",
|
|
1037
|
+
"parameters": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "direction",
|
|
1040
|
+
"description": "Either 'BEFORE' or 'AFTER' to identify where the new column goes relative to the selection.",
|
|
1041
|
+
"type": {
|
|
1042
|
+
"text": "string"
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
],
|
|
1046
|
+
"description": "Add a column before or after the current selection, whether it's in the header or body.\n\nIn MarkupEditor, the header is always colspanned fully, so we need to merge the headers if adding \na column in created a new element in the header row."
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"kind": "function",
|
|
1050
|
+
"name": "addColCommand",
|
|
1051
|
+
"parameters": [
|
|
1052
|
+
{
|
|
1053
|
+
"name": "direction"
|
|
1054
|
+
}
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"kind": "function",
|
|
1059
|
+
"name": "addHeader",
|
|
1060
|
+
"parameters": [
|
|
1061
|
+
{
|
|
1062
|
+
"name": "colspan",
|
|
1063
|
+
"default": "true",
|
|
1064
|
+
"description": "Whether the header should span all columns of the table or not.",
|
|
1065
|
+
"type": {
|
|
1066
|
+
"text": "boolean"
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"description": "Add a header to the table at the selection."
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"kind": "function",
|
|
1074
|
+
"name": "addHeaderCommand",
|
|
1075
|
+
"parameters": [
|
|
1076
|
+
{
|
|
1077
|
+
"name": "colspan",
|
|
1078
|
+
"default": "true"
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"kind": "function",
|
|
1084
|
+
"name": "deleteTableArea",
|
|
1085
|
+
"parameters": [
|
|
1086
|
+
{
|
|
1087
|
+
"name": "area",
|
|
1088
|
+
"description": "The area of the table to be deleted.",
|
|
1089
|
+
"type": {
|
|
1090
|
+
"text": "'ROW' | 'COL' | 'TABLE'"
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
],
|
|
1094
|
+
"description": "Delete the area at the table selection, either the row, col, or the entire table."
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"kind": "function",
|
|
1098
|
+
"name": "deleteTableAreaCommand",
|
|
1099
|
+
"parameters": [
|
|
1100
|
+
{
|
|
1101
|
+
"name": "area"
|
|
1102
|
+
}
|
|
1103
|
+
]
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"kind": "function",
|
|
1107
|
+
"name": "borderTable",
|
|
1108
|
+
"parameters": [
|
|
1109
|
+
{
|
|
1110
|
+
"name": "border",
|
|
1111
|
+
"description": "Set the class of the table to correspond to caller's notion of border, so it displays properly.",
|
|
1112
|
+
"type": {
|
|
1113
|
+
"text": "'outer' | 'header' | 'cell' | 'none'"
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"description": "Set the class of the table to style it using CSS.\nThe default draws a border around everything."
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"kind": "function",
|
|
1121
|
+
"name": "isTableSelected",
|
|
1122
|
+
"parameters": [
|
|
1123
|
+
{
|
|
1124
|
+
"name": "state"
|
|
1125
|
+
}
|
|
1126
|
+
]
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"kind": "function",
|
|
1130
|
+
"name": "tableHasHeader",
|
|
1131
|
+
"parameters": [
|
|
1132
|
+
{
|
|
1133
|
+
"name": "state"
|
|
1134
|
+
}
|
|
1135
|
+
]
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"kind": "function",
|
|
1139
|
+
"name": "setBorderCommand",
|
|
1140
|
+
"parameters": [
|
|
1141
|
+
{
|
|
1142
|
+
"name": "border"
|
|
1143
|
+
}
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "function",
|
|
1148
|
+
"name": "consoleLog",
|
|
1149
|
+
"parameters": [
|
|
1150
|
+
{
|
|
1151
|
+
"name": "string",
|
|
1152
|
+
"description": "The string to package up as a console log message in a callback",
|
|
1153
|
+
"type": {
|
|
1154
|
+
"text": "string"
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
"description": "Callback to show a string in the console, like console.log(), but for environments like Xcode."
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
"exports": [
|
|
1162
|
+
{
|
|
1163
|
+
"kind": "js",
|
|
1164
|
+
"name": "setTopLevelAttributes",
|
|
1165
|
+
"declaration": {
|
|
1166
|
+
"name": "setTopLevelAttributes",
|
|
1167
|
+
"module": "src/markup.js"
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"kind": "js",
|
|
1172
|
+
"name": "loadUserFiles",
|
|
1173
|
+
"declaration": {
|
|
1174
|
+
"name": "loadUserFiles",
|
|
1175
|
+
"module": "src/markup.js"
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"kind": "js",
|
|
1180
|
+
"name": "searchFor",
|
|
1181
|
+
"declaration": {
|
|
1182
|
+
"name": "searchFor",
|
|
1183
|
+
"module": "src/markup.js"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"kind": "js",
|
|
1188
|
+
"name": "deactivateSearch",
|
|
1189
|
+
"declaration": {
|
|
1190
|
+
"name": "deactivateSearch",
|
|
1191
|
+
"module": "src/markup.js"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"kind": "js",
|
|
1196
|
+
"name": "cancelSearch",
|
|
1197
|
+
"declaration": {
|
|
1198
|
+
"name": "cancelSearch",
|
|
1199
|
+
"module": "src/markup.js"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"kind": "js",
|
|
1204
|
+
"name": "pasteHTML",
|
|
1205
|
+
"declaration": {
|
|
1206
|
+
"name": "pasteHTML",
|
|
1207
|
+
"module": "src/markup.js"
|
|
1208
|
+
}
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"kind": "js",
|
|
1212
|
+
"name": "pasteText",
|
|
1213
|
+
"declaration": {
|
|
1214
|
+
"name": "pasteText",
|
|
1215
|
+
"module": "src/markup.js"
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"kind": "js",
|
|
1220
|
+
"name": "emptyDocument",
|
|
1221
|
+
"declaration": {
|
|
1222
|
+
"name": "emptyDocument",
|
|
1223
|
+
"module": "src/markup.js"
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"kind": "js",
|
|
1228
|
+
"name": "emptyHTML",
|
|
1229
|
+
"declaration": {
|
|
1230
|
+
"name": "emptyHTML",
|
|
1231
|
+
"module": "src/markup.js"
|
|
1232
|
+
}
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"kind": "js",
|
|
1236
|
+
"name": "getDataImages",
|
|
1237
|
+
"declaration": {
|
|
1238
|
+
"name": "getDataImages",
|
|
1239
|
+
"module": "src/markup.js"
|
|
1240
|
+
}
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"kind": "js",
|
|
1244
|
+
"name": "savedDataImage",
|
|
1245
|
+
"declaration": {
|
|
1246
|
+
"name": "savedDataImage",
|
|
1247
|
+
"module": "src/markup.js"
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"kind": "js",
|
|
1252
|
+
"name": "getHTML",
|
|
1253
|
+
"declaration": {
|
|
1254
|
+
"name": "getHTML",
|
|
1255
|
+
"module": "src/markup.js"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"kind": "js",
|
|
1260
|
+
"name": "setHTML",
|
|
1261
|
+
"declaration": {
|
|
1262
|
+
"name": "setHTML",
|
|
1263
|
+
"module": "src/markup.js"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"kind": "js",
|
|
1268
|
+
"name": "getHeight",
|
|
1269
|
+
"declaration": {
|
|
1270
|
+
"name": "getHeight",
|
|
1271
|
+
"module": "src/markup.js"
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"kind": "js",
|
|
1276
|
+
"name": "padBottom",
|
|
1277
|
+
"declaration": {
|
|
1278
|
+
"name": "padBottom",
|
|
1279
|
+
"module": "src/markup.js"
|
|
1280
|
+
}
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"kind": "js",
|
|
1284
|
+
"name": "focus",
|
|
1285
|
+
"declaration": {
|
|
1286
|
+
"name": "focus",
|
|
1287
|
+
"module": "src/markup.js"
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"kind": "js",
|
|
1292
|
+
"name": "resetSelection",
|
|
1293
|
+
"declaration": {
|
|
1294
|
+
"name": "resetSelection",
|
|
1295
|
+
"module": "src/markup.js"
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "js",
|
|
1300
|
+
"name": "addDiv",
|
|
1301
|
+
"declaration": {
|
|
1302
|
+
"name": "addDiv",
|
|
1303
|
+
"module": "src/markup.js"
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"kind": "js",
|
|
1308
|
+
"name": "removeDiv",
|
|
1309
|
+
"declaration": {
|
|
1310
|
+
"name": "removeDiv",
|
|
1311
|
+
"module": "src/markup.js"
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"kind": "js",
|
|
1316
|
+
"name": "addButton",
|
|
1317
|
+
"declaration": {
|
|
1318
|
+
"name": "addButton",
|
|
1319
|
+
"module": "src/markup.js"
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"kind": "js",
|
|
1324
|
+
"name": "removeButton",
|
|
1325
|
+
"declaration": {
|
|
1326
|
+
"name": "removeButton",
|
|
1327
|
+
"module": "src/markup.js"
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"kind": "js",
|
|
1332
|
+
"name": "focusOn",
|
|
1333
|
+
"declaration": {
|
|
1334
|
+
"name": "focusOn",
|
|
1335
|
+
"module": "src/markup.js"
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"kind": "js",
|
|
1340
|
+
"name": "removeAllDivs",
|
|
1341
|
+
"declaration": {
|
|
1342
|
+
"name": "removeAllDivs",
|
|
1343
|
+
"module": "src/markup.js"
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"kind": "js",
|
|
1348
|
+
"name": "toggleBold",
|
|
1349
|
+
"declaration": {
|
|
1350
|
+
"name": "toggleBold",
|
|
1351
|
+
"module": "src/markup.js"
|
|
1352
|
+
}
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "js",
|
|
1356
|
+
"name": "toggleItalic",
|
|
1357
|
+
"declaration": {
|
|
1358
|
+
"name": "toggleItalic",
|
|
1359
|
+
"module": "src/markup.js"
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "js",
|
|
1364
|
+
"name": "toggleUnderline",
|
|
1365
|
+
"declaration": {
|
|
1366
|
+
"name": "toggleUnderline",
|
|
1367
|
+
"module": "src/markup.js"
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"kind": "js",
|
|
1372
|
+
"name": "toggleStrike",
|
|
1373
|
+
"declaration": {
|
|
1374
|
+
"name": "toggleStrike",
|
|
1375
|
+
"module": "src/markup.js"
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "js",
|
|
1380
|
+
"name": "toggleCode",
|
|
1381
|
+
"declaration": {
|
|
1382
|
+
"name": "toggleCode",
|
|
1383
|
+
"module": "src/markup.js"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"kind": "js",
|
|
1388
|
+
"name": "toggleSubscript",
|
|
1389
|
+
"declaration": {
|
|
1390
|
+
"name": "toggleSubscript",
|
|
1391
|
+
"module": "src/markup.js"
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"kind": "js",
|
|
1396
|
+
"name": "toggleSuperscript",
|
|
1397
|
+
"declaration": {
|
|
1398
|
+
"name": "toggleSuperscript",
|
|
1399
|
+
"module": "src/markup.js"
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "js",
|
|
1404
|
+
"name": "toggleFormatCommand",
|
|
1405
|
+
"declaration": {
|
|
1406
|
+
"name": "toggleFormatCommand",
|
|
1407
|
+
"module": "src/markup.js"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"kind": "js",
|
|
1412
|
+
"name": "setStyle",
|
|
1413
|
+
"declaration": {
|
|
1414
|
+
"name": "setStyle",
|
|
1415
|
+
"module": "src/markup.js"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "js",
|
|
1420
|
+
"name": "toggleListItem",
|
|
1421
|
+
"declaration": {
|
|
1422
|
+
"name": "toggleListItem",
|
|
1423
|
+
"module": "src/markup.js"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "js",
|
|
1428
|
+
"name": "indent",
|
|
1429
|
+
"declaration": {
|
|
1430
|
+
"name": "indent",
|
|
1431
|
+
"module": "src/markup.js"
|
|
1432
|
+
}
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"kind": "js",
|
|
1436
|
+
"name": "indentCommand",
|
|
1437
|
+
"declaration": {
|
|
1438
|
+
"name": "indentCommand",
|
|
1439
|
+
"module": "src/markup.js"
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"kind": "js",
|
|
1444
|
+
"name": "outdent",
|
|
1445
|
+
"declaration": {
|
|
1446
|
+
"name": "outdent",
|
|
1447
|
+
"module": "src/markup.js"
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"kind": "js",
|
|
1452
|
+
"name": "outdentCommand",
|
|
1453
|
+
"declaration": {
|
|
1454
|
+
"name": "outdentCommand",
|
|
1455
|
+
"module": "src/markup.js"
|
|
1456
|
+
}
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"kind": "js",
|
|
1460
|
+
"name": "getSelectionState",
|
|
1461
|
+
"declaration": {
|
|
1462
|
+
"name": "getSelectionState",
|
|
1463
|
+
"module": "src/markup.js"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"kind": "js",
|
|
1468
|
+
"name": "getLinkAttributes",
|
|
1469
|
+
"declaration": {
|
|
1470
|
+
"name": "getLinkAttributes",
|
|
1471
|
+
"module": "src/markup.js"
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"kind": "js",
|
|
1476
|
+
"name": "getImageAttributes",
|
|
1477
|
+
"declaration": {
|
|
1478
|
+
"name": "getImageAttributes",
|
|
1479
|
+
"module": "src/markup.js"
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"kind": "js",
|
|
1484
|
+
"name": "paragraphStyle",
|
|
1485
|
+
"declaration": {
|
|
1486
|
+
"name": "paragraphStyle",
|
|
1487
|
+
"module": "src/markup.js"
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"kind": "js",
|
|
1492
|
+
"name": "isIndented",
|
|
1493
|
+
"declaration": {
|
|
1494
|
+
"name": "isIndented",
|
|
1495
|
+
"module": "src/markup.js"
|
|
1496
|
+
}
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"kind": "js",
|
|
1500
|
+
"name": "searchedCallback",
|
|
1501
|
+
"declaration": {
|
|
1502
|
+
"name": "searchedCallback",
|
|
1503
|
+
"module": "src/markup.js"
|
|
1504
|
+
}
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"kind": "js",
|
|
1508
|
+
"name": "activateSearchCallback",
|
|
1509
|
+
"declaration": {
|
|
1510
|
+
"name": "activateSearchCallback",
|
|
1511
|
+
"module": "src/markup.js"
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"kind": "js",
|
|
1516
|
+
"name": "deactivateSearchCallback",
|
|
1517
|
+
"declaration": {
|
|
1518
|
+
"name": "deactivateSearchCallback",
|
|
1519
|
+
"module": "src/markup.js"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"kind": "js",
|
|
1524
|
+
"name": "focused",
|
|
1525
|
+
"declaration": {
|
|
1526
|
+
"name": "focused",
|
|
1527
|
+
"module": "src/markup.js"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"kind": "js",
|
|
1532
|
+
"name": "setTestHTML",
|
|
1533
|
+
"declaration": {
|
|
1534
|
+
"name": "setTestHTML",
|
|
1535
|
+
"module": "src/markup.js"
|
|
1536
|
+
}
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"kind": "js",
|
|
1540
|
+
"name": "getTestHTML",
|
|
1541
|
+
"declaration": {
|
|
1542
|
+
"name": "getTestHTML",
|
|
1543
|
+
"module": "src/markup.js"
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"kind": "js",
|
|
1548
|
+
"name": "doUndo",
|
|
1549
|
+
"declaration": {
|
|
1550
|
+
"name": "doUndo",
|
|
1551
|
+
"module": "src/markup.js"
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"kind": "js",
|
|
1556
|
+
"name": "doRedo",
|
|
1557
|
+
"declaration": {
|
|
1558
|
+
"name": "doRedo",
|
|
1559
|
+
"module": "src/markup.js"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"kind": "js",
|
|
1564
|
+
"name": "testBlockquoteEnter",
|
|
1565
|
+
"declaration": {
|
|
1566
|
+
"name": "testBlockquoteEnter",
|
|
1567
|
+
"module": "src/markup.js"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"kind": "js",
|
|
1572
|
+
"name": "testListEnter",
|
|
1573
|
+
"declaration": {
|
|
1574
|
+
"name": "testListEnter",
|
|
1575
|
+
"module": "src/markup.js"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"kind": "js",
|
|
1580
|
+
"name": "testExtractContents",
|
|
1581
|
+
"declaration": {
|
|
1582
|
+
"name": "testExtractContents",
|
|
1583
|
+
"module": "src/markup.js"
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"kind": "js",
|
|
1588
|
+
"name": "testPasteHTMLPreprocessing",
|
|
1589
|
+
"declaration": {
|
|
1590
|
+
"name": "testPasteHTMLPreprocessing",
|
|
1591
|
+
"module": "src/markup.js"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"kind": "js",
|
|
1596
|
+
"name": "testPasteTextPreprocessing",
|
|
1597
|
+
"declaration": {
|
|
1598
|
+
"name": "testPasteTextPreprocessing",
|
|
1599
|
+
"module": "src/markup.js"
|
|
1600
|
+
}
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"kind": "js",
|
|
1604
|
+
"name": "insertLink",
|
|
1605
|
+
"declaration": {
|
|
1606
|
+
"name": "insertLink",
|
|
1607
|
+
"module": "src/markup.js"
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"kind": "js",
|
|
1612
|
+
"name": "insertLinkCommand",
|
|
1613
|
+
"declaration": {
|
|
1614
|
+
"name": "insertLinkCommand",
|
|
1615
|
+
"module": "src/markup.js"
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"kind": "js",
|
|
1620
|
+
"name": "insertInternalLinkCommand",
|
|
1621
|
+
"declaration": {
|
|
1622
|
+
"name": "insertInternalLinkCommand",
|
|
1623
|
+
"module": "src/markup.js"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"kind": "js",
|
|
1628
|
+
"name": "deleteLink",
|
|
1629
|
+
"declaration": {
|
|
1630
|
+
"name": "deleteLink",
|
|
1631
|
+
"module": "src/markup.js"
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"kind": "js",
|
|
1636
|
+
"name": "deleteLinkCommand",
|
|
1637
|
+
"declaration": {
|
|
1638
|
+
"name": "deleteLinkCommand",
|
|
1639
|
+
"module": "src/markup.js"
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"kind": "js",
|
|
1644
|
+
"name": "selectFullLink",
|
|
1645
|
+
"declaration": {
|
|
1646
|
+
"name": "selectFullLink",
|
|
1647
|
+
"module": "src/markup.js"
|
|
1648
|
+
}
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"kind": "js",
|
|
1652
|
+
"name": "insertImage",
|
|
1653
|
+
"declaration": {
|
|
1654
|
+
"name": "insertImage",
|
|
1655
|
+
"module": "src/markup.js"
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"kind": "js",
|
|
1660
|
+
"name": "insertImageCommand",
|
|
1661
|
+
"declaration": {
|
|
1662
|
+
"name": "insertImageCommand",
|
|
1663
|
+
"module": "src/markup.js"
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"kind": "js",
|
|
1668
|
+
"name": "modifyImage",
|
|
1669
|
+
"declaration": {
|
|
1670
|
+
"name": "modifyImage",
|
|
1671
|
+
"module": "src/markup.js"
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"kind": "js",
|
|
1676
|
+
"name": "modifyImageCommand",
|
|
1677
|
+
"declaration": {
|
|
1678
|
+
"name": "modifyImageCommand",
|
|
1679
|
+
"module": "src/markup.js"
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"kind": "js",
|
|
1684
|
+
"name": "cutImage",
|
|
1685
|
+
"declaration": {
|
|
1686
|
+
"name": "cutImage",
|
|
1687
|
+
"module": "src/markup.js"
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"kind": "js",
|
|
1692
|
+
"name": "insertTable",
|
|
1693
|
+
"declaration": {
|
|
1694
|
+
"name": "insertTable",
|
|
1695
|
+
"module": "src/markup.js"
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"kind": "js",
|
|
1700
|
+
"name": "insertTableCommand",
|
|
1701
|
+
"declaration": {
|
|
1702
|
+
"name": "insertTableCommand",
|
|
1703
|
+
"module": "src/markup.js"
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"kind": "js",
|
|
1708
|
+
"name": "addRow",
|
|
1709
|
+
"declaration": {
|
|
1710
|
+
"name": "addRow",
|
|
1711
|
+
"module": "src/markup.js"
|
|
1712
|
+
}
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"kind": "js",
|
|
1716
|
+
"name": "addRowCommand",
|
|
1717
|
+
"declaration": {
|
|
1718
|
+
"name": "addRowCommand",
|
|
1719
|
+
"module": "src/markup.js"
|
|
1720
|
+
}
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"kind": "js",
|
|
1724
|
+
"name": "addCol",
|
|
1725
|
+
"declaration": {
|
|
1726
|
+
"name": "addCol",
|
|
1727
|
+
"module": "src/markup.js"
|
|
1728
|
+
}
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"kind": "js",
|
|
1732
|
+
"name": "addColCommand",
|
|
1733
|
+
"declaration": {
|
|
1734
|
+
"name": "addColCommand",
|
|
1735
|
+
"module": "src/markup.js"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"kind": "js",
|
|
1740
|
+
"name": "addHeader",
|
|
1741
|
+
"declaration": {
|
|
1742
|
+
"name": "addHeader",
|
|
1743
|
+
"module": "src/markup.js"
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"kind": "js",
|
|
1748
|
+
"name": "addHeaderCommand",
|
|
1749
|
+
"declaration": {
|
|
1750
|
+
"name": "addHeaderCommand",
|
|
1751
|
+
"module": "src/markup.js"
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"kind": "js",
|
|
1756
|
+
"name": "deleteTableArea",
|
|
1757
|
+
"declaration": {
|
|
1758
|
+
"name": "deleteTableArea",
|
|
1759
|
+
"module": "src/markup.js"
|
|
1760
|
+
}
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"kind": "js",
|
|
1764
|
+
"name": "deleteTableAreaCommand",
|
|
1765
|
+
"declaration": {
|
|
1766
|
+
"name": "deleteTableAreaCommand",
|
|
1767
|
+
"module": "src/markup.js"
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"kind": "js",
|
|
1772
|
+
"name": "borderTable",
|
|
1773
|
+
"declaration": {
|
|
1774
|
+
"name": "borderTable",
|
|
1775
|
+
"module": "src/markup.js"
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"kind": "js",
|
|
1780
|
+
"name": "isTableSelected",
|
|
1781
|
+
"declaration": {
|
|
1782
|
+
"name": "isTableSelected",
|
|
1783
|
+
"module": "src/markup.js"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"kind": "js",
|
|
1788
|
+
"name": "tableHasHeader",
|
|
1789
|
+
"declaration": {
|
|
1790
|
+
"name": "tableHasHeader",
|
|
1791
|
+
"module": "src/markup.js"
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"kind": "js",
|
|
1796
|
+
"name": "setBorderCommand",
|
|
1797
|
+
"declaration": {
|
|
1798
|
+
"name": "setBorderCommand",
|
|
1799
|
+
"module": "src/markup.js"
|
|
1800
|
+
}
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"kind": "js",
|
|
1804
|
+
"name": "consoleLog",
|
|
1805
|
+
"declaration": {
|
|
1806
|
+
"name": "consoleLog",
|
|
1807
|
+
"module": "src/markup.js"
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
]
|
|
1811
|
+
},
|
|
1812
|
+
{
|
|
1813
|
+
"kind": "javascript-module",
|
|
1814
|
+
"path": "src/setup/menuitems.js",
|
|
1815
|
+
"declarations": [
|
|
1816
|
+
{
|
|
1817
|
+
"kind": "class",
|
|
1818
|
+
"description": "An icon or label that, when clicked, executes a command.\n\nModified from: [prosemirror-menu](https://github.com/ProseMirror/prosemirror-menu)",
|
|
1819
|
+
"name": "MenuItem",
|
|
1820
|
+
"members": [
|
|
1821
|
+
{
|
|
1822
|
+
"kind": "method",
|
|
1823
|
+
"name": "render",
|
|
1824
|
+
"parameters": [
|
|
1825
|
+
{
|
|
1826
|
+
"name": "view",
|
|
1827
|
+
"description": "The view to render this MenuItem in.",
|
|
1828
|
+
"type": {
|
|
1829
|
+
"text": "EditorView"
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
],
|
|
1833
|
+
"description": "Renders the item according to the `spec`, and adds an event handler which \nexecutes the command when the representation is clicked."
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"kind": "field",
|
|
1837
|
+
"name": "prefix"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"kind": "field",
|
|
1841
|
+
"name": "spec",
|
|
1842
|
+
"default": "spec"
|
|
1843
|
+
}
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"kind": "class",
|
|
1848
|
+
"description": "A drop-down menu, displayed as a label with a downwards-pointing triangle to the right of it.\n\nModified from: [prosemirror-menu](https://github.com/ProseMirror/prosemirror-menu)",
|
|
1849
|
+
"name": "Dropdown",
|
|
1850
|
+
"members": [
|
|
1851
|
+
{
|
|
1852
|
+
"kind": "method",
|
|
1853
|
+
"name": "render",
|
|
1854
|
+
"parameters": [
|
|
1855
|
+
{
|
|
1856
|
+
"name": "view",
|
|
1857
|
+
"description": "The EditorView to render this DropDown in.",
|
|
1858
|
+
"type": {
|
|
1859
|
+
"text": "EditorView"
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
],
|
|
1863
|
+
"description": "Render the dropdown menu and sub-items."
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"kind": "method",
|
|
1867
|
+
"name": "expand",
|
|
1868
|
+
"parameters": [
|
|
1869
|
+
{
|
|
1870
|
+
"name": "dom"
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
"name": "items"
|
|
1874
|
+
}
|
|
1875
|
+
]
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"kind": "field",
|
|
1879
|
+
"name": "prefix"
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"kind": "field",
|
|
1883
|
+
"name": "options",
|
|
1884
|
+
"default": "options"
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"kind": "field",
|
|
1888
|
+
"name": "content"
|
|
1889
|
+
}
|
|
1890
|
+
]
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"kind": "class",
|
|
1894
|
+
"description": "Represents a submenu wrapping a group of elements that start\nhidden and expand to the right when hovered over or tapped.\n\nModified from: [prosemirror-menu](https://github.com/ProseMirror/prosemirror-menu)",
|
|
1895
|
+
"name": "DropdownSubmenu",
|
|
1896
|
+
"members": [
|
|
1897
|
+
{
|
|
1898
|
+
"kind": "method",
|
|
1899
|
+
"name": "render",
|
|
1900
|
+
"parameters": [
|
|
1901
|
+
{
|
|
1902
|
+
"name": "view"
|
|
1903
|
+
}
|
|
1904
|
+
],
|
|
1905
|
+
"description": "Renders the submenu."
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"kind": "field",
|
|
1909
|
+
"name": "prefix"
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"kind": "field",
|
|
1913
|
+
"name": "options",
|
|
1914
|
+
"default": "options"
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
"kind": "field",
|
|
1918
|
+
"name": "content"
|
|
1919
|
+
}
|
|
1920
|
+
]
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"kind": "class",
|
|
1924
|
+
"description": "",
|
|
1925
|
+
"name": "ParagraphStyleItem",
|
|
1926
|
+
"members": [
|
|
1927
|
+
{
|
|
1928
|
+
"kind": "method",
|
|
1929
|
+
"name": "paragraphStyleItem",
|
|
1930
|
+
"parameters": [
|
|
1931
|
+
{
|
|
1932
|
+
"name": "nodeType"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "style"
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "options"
|
|
1939
|
+
}
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "method",
|
|
1944
|
+
"name": "render",
|
|
1945
|
+
"parameters": [
|
|
1946
|
+
{
|
|
1947
|
+
"name": "view"
|
|
1948
|
+
}
|
|
1949
|
+
]
|
|
1950
|
+
},
|
|
1951
|
+
{
|
|
1952
|
+
"kind": "field",
|
|
1953
|
+
"name": "style",
|
|
1954
|
+
"default": "style"
|
|
1955
|
+
},
|
|
1956
|
+
{
|
|
1957
|
+
"kind": "field",
|
|
1958
|
+
"name": "label"
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"kind": "field",
|
|
1962
|
+
"name": "keymap",
|
|
1963
|
+
"default": "options[\"keymap\"]"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"kind": "field",
|
|
1967
|
+
"name": "item"
|
|
1968
|
+
}
|
|
1969
|
+
]
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"kind": "class",
|
|
1973
|
+
"description": "Represents the link MenuItem in the toolbar, which opens the link dialog and maintains its state.",
|
|
1974
|
+
"name": "LinkItem",
|
|
1975
|
+
"members": [
|
|
1976
|
+
{
|
|
1977
|
+
"kind": "method",
|
|
1978
|
+
"name": "createDialog",
|
|
1979
|
+
"parameters": [
|
|
1980
|
+
{
|
|
1981
|
+
"name": "view",
|
|
1982
|
+
"type": {
|
|
1983
|
+
"text": "EditorView"
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
],
|
|
1987
|
+
"description": "Create the dialog element for adding/modifying links. Append it to the wrapper after the toolbar."
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"kind": "method",
|
|
1991
|
+
"name": "setInputArea",
|
|
1992
|
+
"parameters": [
|
|
1993
|
+
{
|
|
1994
|
+
"name": "view",
|
|
1995
|
+
"type": {
|
|
1996
|
+
"text": "*"
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
],
|
|
2000
|
+
"description": "Create and add the input element for the URL.\n\nCapture Enter to perform the command of the active button, either OK or Cancel."
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"kind": "method",
|
|
2004
|
+
"name": "setButtons",
|
|
2005
|
+
"parameters": [
|
|
2006
|
+
{
|
|
2007
|
+
"name": "view",
|
|
2008
|
+
"type": {
|
|
2009
|
+
"text": "EditorView"
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
],
|
|
2013
|
+
"description": "Create and append the buttons in the `dialog`.\n\nTrack the `dom` and `update` properties for the OK and Cancel buttons so we can show when\nthey are active as a way to indicate the default action on Enter in the `hrefArea`."
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"kind": "method",
|
|
2017
|
+
"name": "getLocalRefDropdown"
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"kind": "method",
|
|
2021
|
+
"name": "getLocalRefItems"
|
|
2022
|
+
},
|
|
2023
|
+
{
|
|
2024
|
+
"kind": "method",
|
|
2025
|
+
"name": "refMenuItem",
|
|
2026
|
+
"parameters": [
|
|
2027
|
+
{
|
|
2028
|
+
"name": "hTag"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "index"
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
"name": "label"
|
|
2035
|
+
}
|
|
2036
|
+
]
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"kind": "method",
|
|
2040
|
+
"name": "isValid"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"kind": "method",
|
|
2044
|
+
"name": "hrefValue",
|
|
2045
|
+
"description": "Return the string from the `hrefArea`.",
|
|
2046
|
+
"return": {
|
|
2047
|
+
"type": {
|
|
2048
|
+
"text": "string"
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"kind": "method",
|
|
2054
|
+
"name": "insertLink",
|
|
2055
|
+
"parameters": [
|
|
2056
|
+
{
|
|
2057
|
+
"name": "state",
|
|
2058
|
+
"type": {
|
|
2059
|
+
"text": "EditorState"
|
|
2060
|
+
}
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"name": "dispatch"
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"name": "view",
|
|
2067
|
+
"type": {
|
|
2068
|
+
"text": "EditorView"
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"description": "(Transaction)} dispatch",
|
|
2073
|
+
"name": "",
|
|
2074
|
+
"type": {
|
|
2075
|
+
"text": "Function"
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
],
|
|
2079
|
+
"description": "Insert the link provided in the hrefArea if it's valid, deleting any existing link first. Close if it worked."
|
|
2080
|
+
},
|
|
2081
|
+
{
|
|
2082
|
+
"kind": "method",
|
|
2083
|
+
"name": "isInternalLink"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"kind": "method",
|
|
2087
|
+
"name": "deleteLink",
|
|
2088
|
+
"parameters": [
|
|
2089
|
+
{
|
|
2090
|
+
"name": "state",
|
|
2091
|
+
"type": {
|
|
2092
|
+
"text": "EditorState"
|
|
2093
|
+
}
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
"name": "dispatch"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "view",
|
|
2100
|
+
"type": {
|
|
2101
|
+
"text": "EditorView"
|
|
2102
|
+
}
|
|
2103
|
+
},
|
|
2104
|
+
{
|
|
2105
|
+
"description": "(Transaction)} dispatch",
|
|
2106
|
+
"name": "",
|
|
2107
|
+
"type": {
|
|
2108
|
+
"text": "Function"
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
],
|
|
2112
|
+
"description": "Delete the link at the selection. Close if it worked."
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"kind": "field",
|
|
2116
|
+
"name": "item"
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"kind": "field",
|
|
2120
|
+
"name": "dialogHeight",
|
|
2121
|
+
"type": {
|
|
2122
|
+
"text": "number"
|
|
2123
|
+
},
|
|
2124
|
+
"default": "104"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"kind": "field",
|
|
2128
|
+
"name": "dialogWidth",
|
|
2129
|
+
"type": {
|
|
2130
|
+
"text": "number"
|
|
2131
|
+
},
|
|
2132
|
+
"default": "317"
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"kind": "method",
|
|
2136
|
+
"name": "openDialog",
|
|
2137
|
+
"parameters": [
|
|
2138
|
+
{
|
|
2139
|
+
"name": "state",
|
|
2140
|
+
"type": {
|
|
2141
|
+
"text": "EditorState"
|
|
2142
|
+
}
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
"name": "dispatch"
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
"name": "view",
|
|
2149
|
+
"type": {
|
|
2150
|
+
"text": "EditorView"
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"description": "(Transaction)} dispatch",
|
|
2155
|
+
"name": "",
|
|
2156
|
+
"type": {
|
|
2157
|
+
"text": "Function"
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
],
|
|
2161
|
+
"description": "Command to open the link dialog and show it modally.",
|
|
2162
|
+
"inheritedFrom": {
|
|
2163
|
+
"name": "DialogItem",
|
|
2164
|
+
"module": "src/setup/menuitems.js"
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"kind": "method",
|
|
2169
|
+
"name": "setSelectionDiv",
|
|
2170
|
+
"description": "Create and append a div that encloses the selection, with a class that displays it properly.",
|
|
2171
|
+
"inheritedFrom": {
|
|
2172
|
+
"name": "DialogItem",
|
|
2173
|
+
"module": "src/setup/menuitems.js"
|
|
2174
|
+
}
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"kind": "method",
|
|
2178
|
+
"name": "getSelectionDivRect",
|
|
2179
|
+
"description": "Return an object with location and dimension properties for the selection rectangle.",
|
|
2180
|
+
"return": {
|
|
2181
|
+
"type": {
|
|
2182
|
+
"text": "Object"
|
|
2183
|
+
}
|
|
2184
|
+
},
|
|
2185
|
+
"inheritedFrom": {
|
|
2186
|
+
"name": "DialogItem",
|
|
2187
|
+
"module": "src/setup/menuitems.js"
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"kind": "method",
|
|
2192
|
+
"name": "setDialogLocation",
|
|
2193
|
+
"description": "Set the `dialog` location on the screen so it is adjacent to the selection.",
|
|
2194
|
+
"inheritedFrom": {
|
|
2195
|
+
"name": "DialogItem",
|
|
2196
|
+
"module": "src/setup/menuitems.js"
|
|
2197
|
+
}
|
|
2198
|
+
},
|
|
2199
|
+
{
|
|
2200
|
+
"kind": "method",
|
|
2201
|
+
"name": "closeDialog",
|
|
2202
|
+
"description": "Close the dialog, deleting the dialog and selectionDiv and clearing out state.",
|
|
2203
|
+
"inheritedFrom": {
|
|
2204
|
+
"name": "DialogItem",
|
|
2205
|
+
"module": "src/setup/menuitems.js"
|
|
2206
|
+
}
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"kind": "method",
|
|
2210
|
+
"name": "render",
|
|
2211
|
+
"parameters": [
|
|
2212
|
+
{
|
|
2213
|
+
"name": "view",
|
|
2214
|
+
"type": {
|
|
2215
|
+
"text": "EditorView"
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
],
|
|
2219
|
+
"description": "Show the MenuItem that LinkItem holds in its `item` property.",
|
|
2220
|
+
"return": {
|
|
2221
|
+
"type": {
|
|
2222
|
+
"text": "Object"
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
"inheritedFrom": {
|
|
2226
|
+
"name": "DialogItem",
|
|
2227
|
+
"module": "src/setup/menuitems.js"
|
|
2228
|
+
}
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
"kind": "field",
|
|
2232
|
+
"name": "config",
|
|
2233
|
+
"default": "config",
|
|
2234
|
+
"inheritedFrom": {
|
|
2235
|
+
"name": "DialogItem",
|
|
2236
|
+
"module": "src/setup/menuitems.js"
|
|
2237
|
+
}
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"kind": "field",
|
|
2241
|
+
"name": "dialog",
|
|
2242
|
+
"type": {
|
|
2243
|
+
"text": "null"
|
|
2244
|
+
},
|
|
2245
|
+
"default": "null",
|
|
2246
|
+
"inheritedFrom": {
|
|
2247
|
+
"name": "DialogItem",
|
|
2248
|
+
"module": "src/setup/menuitems.js"
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"kind": "field",
|
|
2253
|
+
"name": "selectionDiv",
|
|
2254
|
+
"type": {
|
|
2255
|
+
"text": "null"
|
|
2256
|
+
},
|
|
2257
|
+
"default": "null",
|
|
2258
|
+
"inheritedFrom": {
|
|
2259
|
+
"name": "DialogItem",
|
|
2260
|
+
"module": "src/setup/menuitems.js"
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
"kind": "field",
|
|
2265
|
+
"name": "selectionDivRect",
|
|
2266
|
+
"type": {
|
|
2267
|
+
"text": "null"
|
|
2268
|
+
},
|
|
2269
|
+
"default": "null",
|
|
2270
|
+
"inheritedFrom": {
|
|
2271
|
+
"name": "DialogItem",
|
|
2272
|
+
"module": "src/setup/menuitems.js"
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
],
|
|
2276
|
+
"superclass": {
|
|
2277
|
+
"name": "DialogItem",
|
|
2278
|
+
"module": "src/setup/menuitems.js"
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"kind": "class",
|
|
2283
|
+
"description": "Represents the image MenuItem in the toolbar, which opens the image dialog and maintains its state.\nRequires commands={getImageAttributes, insertImageCommand, modifyImageCommand, getSelectionRect}",
|
|
2284
|
+
"name": "ImageItem",
|
|
2285
|
+
"members": [
|
|
2286
|
+
{
|
|
2287
|
+
"kind": "method",
|
|
2288
|
+
"name": "createDialog",
|
|
2289
|
+
"parameters": [
|
|
2290
|
+
{
|
|
2291
|
+
"name": "view",
|
|
2292
|
+
"type": {
|
|
2293
|
+
"text": "EditorView"
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
],
|
|
2297
|
+
"description": "Create the dialog element for adding/modifying images. Append it to the wrapper after the toolbar."
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
"kind": "method",
|
|
2301
|
+
"name": "setInputArea",
|
|
2302
|
+
"parameters": [
|
|
2303
|
+
{
|
|
2304
|
+
"name": "view",
|
|
2305
|
+
"type": {
|
|
2306
|
+
"text": "*"
|
|
2307
|
+
}
|
|
2308
|
+
}
|
|
2309
|
+
],
|
|
2310
|
+
"description": "Create and add the input elements.\n\nCapture Enter to perform the command of the active button, either OK or Cancel."
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
"kind": "method",
|
|
2314
|
+
"name": "setButtons",
|
|
2315
|
+
"parameters": [
|
|
2316
|
+
{
|
|
2317
|
+
"name": "view",
|
|
2318
|
+
"type": {
|
|
2319
|
+
"text": "EditorView"
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
],
|
|
2323
|
+
"description": "Create and append the buttons in the `dialog`.\n\nTrack the `dom` and `update` properties for the OK and Cancel buttons so we can show when\nthey are active as a way to indicate the default action on Enter in the input areas."
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
"kind": "method",
|
|
2327
|
+
"name": "getPreview"
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
"kind": "method",
|
|
2331
|
+
"name": "updatePreview"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"kind": "method",
|
|
2335
|
+
"name": "srcValue",
|
|
2336
|
+
"description": "Return the string from the `srcArea`.",
|
|
2337
|
+
"return": {
|
|
2338
|
+
"type": {
|
|
2339
|
+
"text": "string"
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"kind": "method",
|
|
2345
|
+
"name": "altValue",
|
|
2346
|
+
"description": "Return the string from the `altArea`.",
|
|
2347
|
+
"return": {
|
|
2348
|
+
"type": {
|
|
2349
|
+
"text": "string"
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"kind": "method",
|
|
2355
|
+
"name": "selectImage",
|
|
2356
|
+
"parameters": [
|
|
2357
|
+
{
|
|
2358
|
+
"name": "state"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "dispatch"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"name": "view"
|
|
2365
|
+
}
|
|
2366
|
+
],
|
|
2367
|
+
"description": "Tell the delegate to select an image to insert, because we don't know how to do that"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"kind": "method",
|
|
2371
|
+
"name": "insertImage",
|
|
2372
|
+
"parameters": [
|
|
2373
|
+
{
|
|
2374
|
+
"name": "state",
|
|
2375
|
+
"type": {
|
|
2376
|
+
"text": "EditorState"
|
|
2377
|
+
}
|
|
2378
|
+
},
|
|
2379
|
+
{
|
|
2380
|
+
"name": "dispatch"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
"name": "view",
|
|
2384
|
+
"type": {
|
|
2385
|
+
"text": "EditorView"
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
"description": "(Transaction)} dispatch",
|
|
2390
|
+
"name": "",
|
|
2391
|
+
"type": {
|
|
2392
|
+
"text": "Function"
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
],
|
|
2396
|
+
"description": "Insert the image provided in the srcArea if it's valid, modifying image if it exists. Close if it worked.\nNote that the image that is saved might be not exist or be properly formed."
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
"kind": "field",
|
|
2400
|
+
"name": "item"
|
|
2401
|
+
},
|
|
2402
|
+
{
|
|
2403
|
+
"kind": "field",
|
|
2404
|
+
"name": "isValid",
|
|
2405
|
+
"type": {
|
|
2406
|
+
"text": "boolean"
|
|
2407
|
+
},
|
|
2408
|
+
"default": "false"
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"kind": "field",
|
|
2412
|
+
"name": "preview",
|
|
2413
|
+
"type": {
|
|
2414
|
+
"text": "null"
|
|
2415
|
+
},
|
|
2416
|
+
"default": "null"
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
"kind": "field",
|
|
2420
|
+
"name": "dialogHeight",
|
|
2421
|
+
"type": {
|
|
2422
|
+
"text": "number"
|
|
2423
|
+
},
|
|
2424
|
+
"default": "134"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "field",
|
|
2428
|
+
"name": "dialogWidth",
|
|
2429
|
+
"type": {
|
|
2430
|
+
"text": "number"
|
|
2431
|
+
},
|
|
2432
|
+
"default": "317"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"kind": "method",
|
|
2436
|
+
"name": "openDialog",
|
|
2437
|
+
"parameters": [
|
|
2438
|
+
{
|
|
2439
|
+
"name": "state",
|
|
2440
|
+
"type": {
|
|
2441
|
+
"text": "EditorState"
|
|
2442
|
+
}
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"name": "dispatch"
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
"name": "view",
|
|
2449
|
+
"type": {
|
|
2450
|
+
"text": "EditorView"
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
{
|
|
2454
|
+
"description": "(Transaction)} dispatch",
|
|
2455
|
+
"name": "",
|
|
2456
|
+
"type": {
|
|
2457
|
+
"text": "Function"
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
],
|
|
2461
|
+
"description": "Command to open the link dialog and show it modally.",
|
|
2462
|
+
"inheritedFrom": {
|
|
2463
|
+
"name": "DialogItem",
|
|
2464
|
+
"module": "src/setup/menuitems.js"
|
|
2465
|
+
}
|
|
2466
|
+
},
|
|
2467
|
+
{
|
|
2468
|
+
"kind": "method",
|
|
2469
|
+
"name": "setSelectionDiv",
|
|
2470
|
+
"description": "Create and append a div that encloses the selection, with a class that displays it properly.",
|
|
2471
|
+
"inheritedFrom": {
|
|
2472
|
+
"name": "DialogItem",
|
|
2473
|
+
"module": "src/setup/menuitems.js"
|
|
2474
|
+
}
|
|
2475
|
+
},
|
|
2476
|
+
{
|
|
2477
|
+
"kind": "method",
|
|
2478
|
+
"name": "getSelectionDivRect",
|
|
2479
|
+
"description": "Return an object with location and dimension properties for the selection rectangle.",
|
|
2480
|
+
"return": {
|
|
2481
|
+
"type": {
|
|
2482
|
+
"text": "Object"
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
"inheritedFrom": {
|
|
2486
|
+
"name": "DialogItem",
|
|
2487
|
+
"module": "src/setup/menuitems.js"
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
{
|
|
2491
|
+
"kind": "method",
|
|
2492
|
+
"name": "setDialogLocation",
|
|
2493
|
+
"description": "Set the `dialog` location on the screen so it is adjacent to the selection.",
|
|
2494
|
+
"inheritedFrom": {
|
|
2495
|
+
"name": "DialogItem",
|
|
2496
|
+
"module": "src/setup/menuitems.js"
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
"kind": "method",
|
|
2501
|
+
"name": "closeDialog",
|
|
2502
|
+
"description": "Close the dialog, deleting the dialog and selectionDiv and clearing out state.",
|
|
2503
|
+
"inheritedFrom": {
|
|
2504
|
+
"name": "DialogItem",
|
|
2505
|
+
"module": "src/setup/menuitems.js"
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
{
|
|
2509
|
+
"kind": "method",
|
|
2510
|
+
"name": "render",
|
|
2511
|
+
"parameters": [
|
|
2512
|
+
{
|
|
2513
|
+
"name": "view",
|
|
2514
|
+
"type": {
|
|
2515
|
+
"text": "EditorView"
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
],
|
|
2519
|
+
"description": "Show the MenuItem that LinkItem holds in its `item` property.",
|
|
2520
|
+
"return": {
|
|
2521
|
+
"type": {
|
|
2522
|
+
"text": "Object"
|
|
2523
|
+
}
|
|
2524
|
+
},
|
|
2525
|
+
"inheritedFrom": {
|
|
2526
|
+
"name": "DialogItem",
|
|
2527
|
+
"module": "src/setup/menuitems.js"
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"kind": "field",
|
|
2532
|
+
"name": "config",
|
|
2533
|
+
"default": "config",
|
|
2534
|
+
"inheritedFrom": {
|
|
2535
|
+
"name": "DialogItem",
|
|
2536
|
+
"module": "src/setup/menuitems.js"
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"kind": "field",
|
|
2541
|
+
"name": "dialog",
|
|
2542
|
+
"type": {
|
|
2543
|
+
"text": "null"
|
|
2544
|
+
},
|
|
2545
|
+
"default": "null",
|
|
2546
|
+
"inheritedFrom": {
|
|
2547
|
+
"name": "DialogItem",
|
|
2548
|
+
"module": "src/setup/menuitems.js"
|
|
2549
|
+
}
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"kind": "field",
|
|
2553
|
+
"name": "selectionDiv",
|
|
2554
|
+
"type": {
|
|
2555
|
+
"text": "null"
|
|
2556
|
+
},
|
|
2557
|
+
"default": "null",
|
|
2558
|
+
"inheritedFrom": {
|
|
2559
|
+
"name": "DialogItem",
|
|
2560
|
+
"module": "src/setup/menuitems.js"
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
"kind": "field",
|
|
2565
|
+
"name": "selectionDivRect",
|
|
2566
|
+
"type": {
|
|
2567
|
+
"text": "null"
|
|
2568
|
+
},
|
|
2569
|
+
"default": "null",
|
|
2570
|
+
"inheritedFrom": {
|
|
2571
|
+
"name": "DialogItem",
|
|
2572
|
+
"module": "src/setup/menuitems.js"
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
],
|
|
2576
|
+
"superclass": {
|
|
2577
|
+
"name": "DialogItem",
|
|
2578
|
+
"module": "src/setup/menuitems.js"
|
|
2579
|
+
}
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"kind": "class",
|
|
2583
|
+
"description": "A MenuItem that inserts a table of size rows/cols and invokes `onMouseover` when \nthe mouse is over it to communicate the size of table it will create when selected.",
|
|
2584
|
+
"name": "TableInsertItem",
|
|
2585
|
+
"members": [
|
|
2586
|
+
{
|
|
2587
|
+
"kind": "method",
|
|
2588
|
+
"name": "tableInsertItem",
|
|
2589
|
+
"parameters": [
|
|
2590
|
+
{
|
|
2591
|
+
"name": "command"
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"name": "options"
|
|
2595
|
+
}
|
|
2596
|
+
]
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
"kind": "method",
|
|
2600
|
+
"name": "render",
|
|
2601
|
+
"parameters": [
|
|
2602
|
+
{
|
|
2603
|
+
"name": "view"
|
|
2604
|
+
}
|
|
2605
|
+
]
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"kind": "field",
|
|
2609
|
+
"name": "prefix"
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"kind": "field",
|
|
2613
|
+
"name": "rows",
|
|
2614
|
+
"default": "rows"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"kind": "field",
|
|
2618
|
+
"name": "cols",
|
|
2619
|
+
"default": "cols"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
"kind": "field",
|
|
2623
|
+
"name": "onMouseover",
|
|
2624
|
+
"default": "onMouseover"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"kind": "field",
|
|
2628
|
+
"name": "command"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"kind": "field",
|
|
2632
|
+
"name": "item"
|
|
2633
|
+
}
|
|
2634
|
+
]
|
|
2635
|
+
},
|
|
2636
|
+
{
|
|
2637
|
+
"kind": "class",
|
|
2638
|
+
"description": "A submenu for creating a table, which contains many TableInsertItems each of which \nwill insert a table of a specific size. The items are bounded divs in a css grid \nlayout that highlight to show the size of the table being created, so we end up with \na compact way to display 24 TableInsertItems.",
|
|
2639
|
+
"name": "TableCreateSubmenu",
|
|
2640
|
+
"members": [
|
|
2641
|
+
{
|
|
2642
|
+
"kind": "method",
|
|
2643
|
+
"name": "onMouseover",
|
|
2644
|
+
"parameters": [
|
|
2645
|
+
{
|
|
2646
|
+
"name": "rows",
|
|
2647
|
+
"type": {
|
|
2648
|
+
"text": "number"
|
|
2649
|
+
}
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"name": "cols",
|
|
2653
|
+
"type": {
|
|
2654
|
+
"text": "number"
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
],
|
|
2658
|
+
"description": "Track rowSize and columnSize as we drag over an item in the `sizer`."
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"kind": "method",
|
|
2662
|
+
"name": "resetSize"
|
|
2663
|
+
},
|
|
2664
|
+
{
|
|
2665
|
+
"kind": "method",
|
|
2666
|
+
"name": "render",
|
|
2667
|
+
"parameters": [
|
|
2668
|
+
{
|
|
2669
|
+
"name": "view"
|
|
2670
|
+
}
|
|
2671
|
+
],
|
|
2672
|
+
"description": "Renders the submenu."
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
"kind": "field",
|
|
2676
|
+
"name": "prefix"
|
|
2677
|
+
},
|
|
2678
|
+
{
|
|
2679
|
+
"kind": "field",
|
|
2680
|
+
"name": "options",
|
|
2681
|
+
"default": "options"
|
|
2682
|
+
},
|
|
2683
|
+
{
|
|
2684
|
+
"kind": "field",
|
|
2685
|
+
"name": "content",
|
|
2686
|
+
"type": {
|
|
2687
|
+
"text": "array"
|
|
2688
|
+
},
|
|
2689
|
+
"default": "[]"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
"kind": "field",
|
|
2693
|
+
"name": "maxRows",
|
|
2694
|
+
"type": {
|
|
2695
|
+
"text": "number"
|
|
2696
|
+
},
|
|
2697
|
+
"default": "6"
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
"kind": "field",
|
|
2701
|
+
"name": "maxCols",
|
|
2702
|
+
"type": {
|
|
2703
|
+
"text": "number"
|
|
2704
|
+
},
|
|
2705
|
+
"default": "4"
|
|
2706
|
+
},
|
|
2707
|
+
{
|
|
2708
|
+
"kind": "field",
|
|
2709
|
+
"name": "rowSize",
|
|
2710
|
+
"type": {
|
|
2711
|
+
"text": "number"
|
|
2712
|
+
},
|
|
2713
|
+
"default": "0"
|
|
2714
|
+
},
|
|
2715
|
+
{
|
|
2716
|
+
"kind": "field",
|
|
2717
|
+
"name": "colSize",
|
|
2718
|
+
"type": {
|
|
2719
|
+
"text": "number"
|
|
2720
|
+
},
|
|
2721
|
+
"default": "0"
|
|
2722
|
+
}
|
|
2723
|
+
]
|
|
2724
|
+
},
|
|
2725
|
+
{
|
|
2726
|
+
"kind": "class",
|
|
2727
|
+
"description": "Represents the search MenuItem in the toolbar, which hides/shows the search bar and maintains its state.",
|
|
2728
|
+
"name": "SearchItem",
|
|
2729
|
+
"members": [
|
|
2730
|
+
{
|
|
2731
|
+
"kind": "method",
|
|
2732
|
+
"name": "showing"
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"kind": "method",
|
|
2736
|
+
"name": "toggleSearch",
|
|
2737
|
+
"parameters": [
|
|
2738
|
+
{
|
|
2739
|
+
"name": "state",
|
|
2740
|
+
"type": {
|
|
2741
|
+
"text": "EditorState"
|
|
2742
|
+
}
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"name": "dispatch"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
"name": "view",
|
|
2749
|
+
"type": {
|
|
2750
|
+
"text": "EditorView"
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2753
|
+
{
|
|
2754
|
+
"description": "(Transaction)} dispatch",
|
|
2755
|
+
"name": "",
|
|
2756
|
+
"type": {
|
|
2757
|
+
"text": "Function"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
],
|
|
2761
|
+
"description": "Toggle the search bar on/off.\n\nNote that this happens when pressing the search button in `view`, so we set the \nactive `muId` rather than depend on it having been set from a focus event."
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
"kind": "method",
|
|
2765
|
+
"name": "hideSearchbar"
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"kind": "method",
|
|
2769
|
+
"name": "stopSearching",
|
|
2770
|
+
"parameters": [
|
|
2771
|
+
{
|
|
2772
|
+
"name": "focus",
|
|
2773
|
+
"default": "true"
|
|
2774
|
+
}
|
|
2775
|
+
]
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"kind": "method",
|
|
2779
|
+
"name": "showSearchbar",
|
|
2780
|
+
"parameters": [
|
|
2781
|
+
{
|
|
2782
|
+
"name": "state"
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
"name": "dispatch"
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"name": "view"
|
|
2789
|
+
}
|
|
2790
|
+
]
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"kind": "method",
|
|
2794
|
+
"name": "setStatus"
|
|
2795
|
+
},
|
|
2796
|
+
{
|
|
2797
|
+
"kind": "method",
|
|
2798
|
+
"name": "statusString",
|
|
2799
|
+
"parameters": [
|
|
2800
|
+
{
|
|
2801
|
+
"name": "count"
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"name": "index"
|
|
2805
|
+
}
|
|
2806
|
+
]
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"kind": "method",
|
|
2810
|
+
"name": "addSearchButtons",
|
|
2811
|
+
"parameters": [
|
|
2812
|
+
{
|
|
2813
|
+
"name": "view"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"name": "searchbar"
|
|
2817
|
+
}
|
|
2818
|
+
]
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
"kind": "method",
|
|
2822
|
+
"name": "searchForwardCommand",
|
|
2823
|
+
"parameters": [
|
|
2824
|
+
{
|
|
2825
|
+
"name": "state"
|
|
2826
|
+
},
|
|
2827
|
+
{
|
|
2828
|
+
"name": "dispatch"
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"name": "view"
|
|
2832
|
+
}
|
|
2833
|
+
]
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"kind": "method",
|
|
2837
|
+
"name": "searchBackwardCommand",
|
|
2838
|
+
"parameters": [
|
|
2839
|
+
{
|
|
2840
|
+
"name": "state"
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
"name": "dispatch"
|
|
2844
|
+
},
|
|
2845
|
+
{
|
|
2846
|
+
"name": "view"
|
|
2847
|
+
}
|
|
2848
|
+
]
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"kind": "method",
|
|
2852
|
+
"name": "toggleMatchCaseCommand",
|
|
2853
|
+
"parameters": [
|
|
2854
|
+
{
|
|
2855
|
+
"name": "state"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"name": "dispatch"
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"name": "view"
|
|
2862
|
+
}
|
|
2863
|
+
]
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
"kind": "method",
|
|
2867
|
+
"name": "scrollToSelection",
|
|
2868
|
+
"parameters": [
|
|
2869
|
+
{
|
|
2870
|
+
"name": "view",
|
|
2871
|
+
"type": {
|
|
2872
|
+
"text": "EditorView"
|
|
2873
|
+
}
|
|
2874
|
+
}
|
|
2875
|
+
],
|
|
2876
|
+
"description": "Use the dom to scroll to the node at the selection. The scrollIntoView when setting the \nselection in prosemirror-search findCommand doesn't work, perhaps because the selection \nis set on state.doc instead of state.tr.doc. \n\nTODO: This method has some problems in that it can\nscroll to a paragraph, and then the next element will be in a bold section within the \nparagraph, causing it to jump. It would be much better if the prosemirror-search \nscrollIntoView worked properly."
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"kind": "method",
|
|
2880
|
+
"name": "render",
|
|
2881
|
+
"parameters": [
|
|
2882
|
+
{
|
|
2883
|
+
"name": "view"
|
|
2884
|
+
}
|
|
2885
|
+
]
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
"kind": "field",
|
|
2889
|
+
"name": "icons"
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
"kind": "field",
|
|
2893
|
+
"name": "command"
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"kind": "field",
|
|
2897
|
+
"name": "item"
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
"kind": "field",
|
|
2901
|
+
"name": "text",
|
|
2902
|
+
"type": {
|
|
2903
|
+
"text": "string"
|
|
2904
|
+
},
|
|
2905
|
+
"default": "''"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"kind": "field",
|
|
2909
|
+
"name": "caseSensitive",
|
|
2910
|
+
"type": {
|
|
2911
|
+
"text": "boolean"
|
|
2912
|
+
},
|
|
2913
|
+
"default": "false"
|
|
2914
|
+
}
|
|
2915
|
+
]
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
"kind": "variable",
|
|
2919
|
+
"name": "separator"
|
|
2920
|
+
},
|
|
2921
|
+
{
|
|
2922
|
+
"kind": "class",
|
|
2923
|
+
"description": "A special item for showing a \"more\" button in the toolbar, which shows its `items` as a sub-toolbar.",
|
|
2924
|
+
"name": "MoreItem",
|
|
2925
|
+
"members": [
|
|
2926
|
+
{
|
|
2927
|
+
"kind": "method",
|
|
2928
|
+
"name": "showing"
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"kind": "method",
|
|
2932
|
+
"name": "toggleMore",
|
|
2933
|
+
"parameters": [
|
|
2934
|
+
{
|
|
2935
|
+
"name": "state"
|
|
2936
|
+
},
|
|
2937
|
+
{
|
|
2938
|
+
"name": "dispatch"
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"name": "view"
|
|
2942
|
+
}
|
|
2943
|
+
]
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"kind": "method",
|
|
2947
|
+
"name": "hideMore"
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
"kind": "method",
|
|
2951
|
+
"name": "showMore",
|
|
2952
|
+
"parameters": [
|
|
2953
|
+
{
|
|
2954
|
+
"name": "state"
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
"name": "dispatch"
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"name": "view"
|
|
2961
|
+
}
|
|
2962
|
+
]
|
|
2963
|
+
},
|
|
2964
|
+
{
|
|
2965
|
+
"kind": "method",
|
|
2966
|
+
"name": "render",
|
|
2967
|
+
"parameters": [
|
|
2968
|
+
{
|
|
2969
|
+
"name": "view"
|
|
2970
|
+
}
|
|
2971
|
+
]
|
|
2972
|
+
},
|
|
2973
|
+
{
|
|
2974
|
+
"kind": "field",
|
|
2975
|
+
"name": "command"
|
|
2976
|
+
},
|
|
2977
|
+
{
|
|
2978
|
+
"kind": "field",
|
|
2979
|
+
"name": "item"
|
|
2980
|
+
},
|
|
2981
|
+
{
|
|
2982
|
+
"kind": "field",
|
|
2983
|
+
"name": "items",
|
|
2984
|
+
"default": "items"
|
|
2985
|
+
}
|
|
2986
|
+
]
|
|
2987
|
+
},
|
|
2988
|
+
{
|
|
2989
|
+
"kind": "function",
|
|
2990
|
+
"name": "cmdItem",
|
|
2991
|
+
"parameters": [
|
|
2992
|
+
{
|
|
2993
|
+
"name": "cmd",
|
|
2994
|
+
"description": "A ProseMirror [Command](https://prosemirror.net/docs/ref/#state.Command)",
|
|
2995
|
+
"type": {
|
|
2996
|
+
"text": "Command"
|
|
2997
|
+
}
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "options",
|
|
3001
|
+
"description": "The spec for the MenuItem",
|
|
3002
|
+
"type": {
|
|
3003
|
+
"text": "object"
|
|
3004
|
+
}
|
|
3005
|
+
}
|
|
3006
|
+
],
|
|
3007
|
+
"description": "Return a MenuItem that runs the command when selected.\n\nThe label is the same as the title, and the MenuItem will be enabled/disabled based on \nwhat `cmd(state)` returns unless otherwise specified in `options`.",
|
|
3008
|
+
"return": {
|
|
3009
|
+
"type": {
|
|
3010
|
+
"text": "MenuItem"
|
|
3011
|
+
}
|
|
3012
|
+
}
|
|
3013
|
+
},
|
|
3014
|
+
{
|
|
3015
|
+
"kind": "function",
|
|
3016
|
+
"name": "separator",
|
|
3017
|
+
"description": "Return a span for a separator between groups of MenuItems",
|
|
3018
|
+
"privacy": "private"
|
|
3019
|
+
},
|
|
3020
|
+
{
|
|
3021
|
+
"kind": "function",
|
|
3022
|
+
"name": "markActive",
|
|
3023
|
+
"parameters": [
|
|
3024
|
+
{
|
|
3025
|
+
"name": "state",
|
|
3026
|
+
"type": {
|
|
3027
|
+
"text": "EditorState"
|
|
3028
|
+
}
|
|
3029
|
+
},
|
|
3030
|
+
{
|
|
3031
|
+
"name": "type",
|
|
3032
|
+
"type": {
|
|
3033
|
+
"text": "MarkType"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
],
|
|
3037
|
+
"description": "Return whether the selection in state is within a mark of type `markType`.",
|
|
3038
|
+
"privacy": "private",
|
|
3039
|
+
"return": {
|
|
3040
|
+
"type": {
|
|
3041
|
+
"text": "boolean"
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"kind": "function",
|
|
3047
|
+
"name": "keyString",
|
|
3048
|
+
"parameters": [
|
|
3049
|
+
{
|
|
3050
|
+
"name": "itemName",
|
|
3051
|
+
"description": "The name of the item in the keymap",
|
|
3052
|
+
"type": {
|
|
3053
|
+
"text": "string"
|
|
3054
|
+
}
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
"name": "keymap",
|
|
3058
|
+
"description": "The mapping between string item names and string hotkeys",
|
|
3059
|
+
"type": {
|
|
3060
|
+
"text": "object"
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
],
|
|
3064
|
+
"description": "Return a string intended for the user to see showing the first key mapping for `itemName`.",
|
|
3065
|
+
"privacy": "private",
|
|
3066
|
+
"return": {
|
|
3067
|
+
"type": {
|
|
3068
|
+
"text": ""
|
|
3069
|
+
}
|
|
3070
|
+
}
|
|
3071
|
+
},
|
|
3072
|
+
{
|
|
3073
|
+
"kind": "function",
|
|
3074
|
+
"name": "baseKeyString",
|
|
3075
|
+
"parameters": [
|
|
3076
|
+
{
|
|
3077
|
+
"name": "itemName"
|
|
3078
|
+
},
|
|
3079
|
+
{
|
|
3080
|
+
"name": "keymap"
|
|
3081
|
+
}
|
|
3082
|
+
]
|
|
3083
|
+
},
|
|
3084
|
+
{
|
|
3085
|
+
"kind": "function",
|
|
3086
|
+
"name": "renderGrouped",
|
|
3087
|
+
"parameters": [
|
|
3088
|
+
{
|
|
3089
|
+
"name": "view",
|
|
3090
|
+
"description": "The view to render content in",
|
|
3091
|
+
"type": {
|
|
3092
|
+
"text": "EditorView"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
"name": "content",
|
|
3097
|
+
"description": "The menuitems to be rendered",
|
|
3098
|
+
"type": {
|
|
3099
|
+
"text": "Array<MenuItem>"
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3102
|
+
],
|
|
3103
|
+
"description": "Render the content in view as a group of MenuItems.",
|
|
3104
|
+
"return": {
|
|
3105
|
+
"type": {
|
|
3106
|
+
"text": "object"
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"kind": "function",
|
|
3112
|
+
"name": "renderGroupedFit",
|
|
3113
|
+
"parameters": [
|
|
3114
|
+
{
|
|
3115
|
+
"name": "view",
|
|
3116
|
+
"type": {
|
|
3117
|
+
"text": "EditorView"
|
|
3118
|
+
}
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
"name": "content",
|
|
3122
|
+
"type": {
|
|
3123
|
+
"text": "Array<MenuItem> | Array<Array<MenuItem>>"
|
|
3124
|
+
}
|
|
3125
|
+
},
|
|
3126
|
+
{
|
|
3127
|
+
"name": "wrapAtIndex",
|
|
3128
|
+
"description": "The index in content` to wrap in another toolbar",
|
|
3129
|
+
"type": {
|
|
3130
|
+
"text": "number"
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
],
|
|
3134
|
+
"description": "Like `renderGrouped`, but at `wrapIndex` in the `content`, place a `MoreItem` that \nwill display a subtoolbar of `content` items starting at `wrapIndex` when it is \npressed. The `MoreItem` renders using `renderGrouped`, not `renderGroupedFit`. Let's \nface it, if you need to wrap a toolbar into more than two lines, you need to think\nthrough your life choices.",
|
|
3135
|
+
"privacy": "private",
|
|
3136
|
+
"return": {
|
|
3137
|
+
"type": {
|
|
3138
|
+
"text": "object"
|
|
3139
|
+
}
|
|
3140
|
+
}
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
"kind": "function",
|
|
3144
|
+
"name": "renderDropdownItems",
|
|
3145
|
+
"parameters": [
|
|
3146
|
+
{
|
|
3147
|
+
"name": "items",
|
|
3148
|
+
"description": "The content to be rendered in a Dropdown",
|
|
3149
|
+
"type": {
|
|
3150
|
+
"text": "Array<MenuItem>"
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
{
|
|
3154
|
+
"name": "view",
|
|
3155
|
+
"description": "The EditorView to render the items in",
|
|
3156
|
+
"type": {
|
|
3157
|
+
"text": "EditorView"
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
],
|
|
3161
|
+
"description": "Render the items in a Dropdown in the view.",
|
|
3162
|
+
"return": {
|
|
3163
|
+
"type": {
|
|
3164
|
+
"text": "object"
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
"kind": "function",
|
|
3170
|
+
"name": "combineUpdates",
|
|
3171
|
+
"parameters": [
|
|
3172
|
+
{
|
|
3173
|
+
"name": "updates"
|
|
3174
|
+
},
|
|
3175
|
+
{
|
|
3176
|
+
"name": "nodes"
|
|
3177
|
+
}
|
|
3178
|
+
]
|
|
3179
|
+
}
|
|
3180
|
+
],
|
|
3181
|
+
"exports": [
|
|
3182
|
+
{
|
|
3183
|
+
"kind": "js",
|
|
3184
|
+
"name": "MenuItem",
|
|
3185
|
+
"declaration": {
|
|
3186
|
+
"name": "MenuItem",
|
|
3187
|
+
"module": "src/setup/menuitems.js"
|
|
3188
|
+
}
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
"kind": "js",
|
|
3192
|
+
"name": "Dropdown",
|
|
3193
|
+
"declaration": {
|
|
3194
|
+
"name": "Dropdown",
|
|
3195
|
+
"module": "src/setup/menuitems.js"
|
|
3196
|
+
}
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
"kind": "js",
|
|
3200
|
+
"name": "DropdownSubmenu",
|
|
3201
|
+
"declaration": {
|
|
3202
|
+
"name": "DropdownSubmenu",
|
|
3203
|
+
"module": "src/setup/menuitems.js"
|
|
3204
|
+
}
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
"kind": "js",
|
|
3208
|
+
"name": "ParagraphStyleItem",
|
|
3209
|
+
"declaration": {
|
|
3210
|
+
"name": "ParagraphStyleItem",
|
|
3211
|
+
"module": "src/setup/menuitems.js"
|
|
3212
|
+
}
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"kind": "js",
|
|
3216
|
+
"name": "LinkItem",
|
|
3217
|
+
"declaration": {
|
|
3218
|
+
"name": "LinkItem",
|
|
3219
|
+
"module": "src/setup/menuitems.js"
|
|
3220
|
+
}
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"kind": "js",
|
|
3224
|
+
"name": "ImageItem",
|
|
3225
|
+
"declaration": {
|
|
3226
|
+
"name": "ImageItem",
|
|
3227
|
+
"module": "src/setup/menuitems.js"
|
|
3228
|
+
}
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"kind": "js",
|
|
3232
|
+
"name": "TableInsertItem",
|
|
3233
|
+
"declaration": {
|
|
3234
|
+
"name": "TableInsertItem",
|
|
3235
|
+
"module": "src/setup/menuitems.js"
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"kind": "js",
|
|
3240
|
+
"name": "TableCreateSubmenu",
|
|
3241
|
+
"declaration": {
|
|
3242
|
+
"name": "TableCreateSubmenu",
|
|
3243
|
+
"module": "src/setup/menuitems.js"
|
|
3244
|
+
}
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"kind": "js",
|
|
3248
|
+
"name": "SearchItem",
|
|
3249
|
+
"declaration": {
|
|
3250
|
+
"name": "SearchItem",
|
|
3251
|
+
"module": "src/setup/menuitems.js"
|
|
3252
|
+
}
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
"kind": "js",
|
|
3256
|
+
"name": "MoreItem",
|
|
3257
|
+
"declaration": {
|
|
3258
|
+
"name": "MoreItem",
|
|
3259
|
+
"module": "src/setup/menuitems.js"
|
|
3260
|
+
}
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"kind": "js",
|
|
3264
|
+
"name": "cmdItem",
|
|
3265
|
+
"declaration": {
|
|
3266
|
+
"name": "cmdItem",
|
|
3267
|
+
"module": "src/setup/menuitems.js"
|
|
3268
|
+
}
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
"kind": "js",
|
|
3272
|
+
"name": "separator",
|
|
3273
|
+
"declaration": {
|
|
3274
|
+
"name": "separator",
|
|
3275
|
+
"module": "src/setup/menuitems.js"
|
|
3276
|
+
}
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"kind": "js",
|
|
3280
|
+
"name": "markActive",
|
|
3281
|
+
"declaration": {
|
|
3282
|
+
"name": "markActive",
|
|
3283
|
+
"module": "src/setup/menuitems.js"
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"kind": "js",
|
|
3288
|
+
"name": "keyString",
|
|
3289
|
+
"declaration": {
|
|
3290
|
+
"name": "keyString",
|
|
3291
|
+
"module": "src/setup/menuitems.js"
|
|
3292
|
+
}
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
"kind": "js",
|
|
3296
|
+
"name": "baseKeyString",
|
|
3297
|
+
"declaration": {
|
|
3298
|
+
"name": "baseKeyString",
|
|
3299
|
+
"module": "src/setup/menuitems.js"
|
|
3300
|
+
}
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"kind": "js",
|
|
3304
|
+
"name": "renderGrouped",
|
|
3305
|
+
"declaration": {
|
|
3306
|
+
"name": "renderGrouped",
|
|
3307
|
+
"module": "src/setup/menuitems.js"
|
|
3308
|
+
}
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"kind": "js",
|
|
3312
|
+
"name": "renderGroupedFit",
|
|
3313
|
+
"declaration": {
|
|
3314
|
+
"name": "renderGroupedFit",
|
|
3315
|
+
"module": "src/setup/menuitems.js"
|
|
3316
|
+
}
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"kind": "js",
|
|
3320
|
+
"name": "renderDropdownItems",
|
|
3321
|
+
"declaration": {
|
|
3322
|
+
"name": "renderDropdownItems",
|
|
3323
|
+
"module": "src/setup/menuitems.js"
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
{
|
|
3327
|
+
"kind": "js",
|
|
3328
|
+
"name": "combineUpdates",
|
|
3329
|
+
"declaration": {
|
|
3330
|
+
"name": "combineUpdates",
|
|
3331
|
+
"module": "src/setup/menuitems.js"
|
|
3332
|
+
}
|
|
3333
|
+
}
|
|
3334
|
+
]
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"kind": "javascript-module",
|
|
3338
|
+
"path": "src/setup/toolbar.js",
|
|
3339
|
+
"declarations": [
|
|
3340
|
+
{
|
|
3341
|
+
"kind": "function",
|
|
3342
|
+
"name": "toolbar",
|
|
3343
|
+
"parameters": [
|
|
3344
|
+
{
|
|
3345
|
+
"name": "content"
|
|
3346
|
+
}
|
|
3347
|
+
]
|
|
3348
|
+
}
|
|
3349
|
+
],
|
|
3350
|
+
"exports": [
|
|
3351
|
+
{
|
|
3352
|
+
"kind": "js",
|
|
3353
|
+
"name": "toolbar",
|
|
3354
|
+
"declaration": {
|
|
3355
|
+
"name": "toolbar",
|
|
3356
|
+
"module": "src/setup/toolbar.js"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
]
|
|
3360
|
+
},
|
|
3361
|
+
{
|
|
3362
|
+
"kind": "javascript-module",
|
|
3363
|
+
"path": "src/setup/index.js",
|
|
3364
|
+
"declarations": [
|
|
3365
|
+
{
|
|
3366
|
+
"kind": "function",
|
|
3367
|
+
"name": "toggleSearch",
|
|
3368
|
+
"description": "Toggle the search bar off and on."
|
|
3369
|
+
},
|
|
3370
|
+
{
|
|
3371
|
+
"kind": "function",
|
|
3372
|
+
"name": "openLinkDialog",
|
|
3373
|
+
"description": "Open the default dialog to insert/edit links."
|
|
3374
|
+
},
|
|
3375
|
+
{
|
|
3376
|
+
"kind": "function",
|
|
3377
|
+
"name": "openImageDialog",
|
|
3378
|
+
"description": "Open the default dialog to insert/edit images."
|
|
3379
|
+
}
|
|
3380
|
+
],
|
|
3381
|
+
"exports": [
|
|
3382
|
+
{
|
|
3383
|
+
"kind": "js",
|
|
3384
|
+
"name": "toggleSearch",
|
|
3385
|
+
"declaration": {
|
|
3386
|
+
"name": "toggleSearch",
|
|
3387
|
+
"module": "src/setup/index.js"
|
|
3388
|
+
}
|
|
3389
|
+
},
|
|
3390
|
+
{
|
|
3391
|
+
"kind": "js",
|
|
3392
|
+
"name": "openLinkDialog",
|
|
3393
|
+
"declaration": {
|
|
3394
|
+
"name": "openLinkDialog",
|
|
3395
|
+
"module": "src/setup/index.js"
|
|
3396
|
+
}
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
"kind": "js",
|
|
3400
|
+
"name": "openImageDialog",
|
|
3401
|
+
"declaration": {
|
|
3402
|
+
"name": "openImageDialog",
|
|
3403
|
+
"module": "src/setup/index.js"
|
|
3404
|
+
}
|
|
3405
|
+
}
|
|
3406
|
+
]
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
"kind": "javascript-module",
|
|
3410
|
+
"path": "src/config/toolbarconfig.js",
|
|
3411
|
+
"declarations": [
|
|
3412
|
+
{
|
|
3413
|
+
"kind": "class",
|
|
3414
|
+
"description": "ToolbarConfig contains static utility methods to obtain a JavaScript object with properties \nthat define the configuration of the MarkupEditor toolbar. The class makes it convenient \nto write and use the utility methods, but an instance of ToolbarConfig itself is not meaningful.\n\n`ToolbarConfig.standard()` is the default for the MarkupEditor. It can be overridden by \npassing a new ToolbarConfig by name using the `toolbar` attribute of the `<markup-editor>` \nelement. You can use the pre-defined static methods like `standard()` and customize what \nit returns, or you can use your own ToolbarConfig.\n\nTo customize the toolbar, for example, in a `userscript` named `mytoolbar.js`:\n\n```\nimport {MU} from \"src/markup-editor.js\"\nlet toolbarConfig = MU.ToolbarConfig.full(true); // Grab the full toolbar, including correction, as a baseline\ntoolbarConfig.insertBar.tableMenu = false; // Turn off table insert menu\nMU.registerConfig(toolbarConfig, \"MyToolbarConfig\") // Register the instance by name so we can reference it\n````\n\nThen, where you insert the `<markup-editor>` element, set the ToolbarConfig by name:\n\n```\n<markup-editor userscript=\"mytoolbar.js\" toolbar=\"MyToolbarConfig\">\n```\n \nTurn off entire toolbars and menus using the \"visibility\" settings. Turn off specific items\nwithin a toolbar or menu using the settings specific to that toolbar or menu. Customize \nleft-to-right ordering using the \"ordering\" settings. Specify icon SVG in the \"icon\" settings.\nUse \"augmentation\" to prepend and/or append a toolbar you define yourself.\n\nThe following properties are supported:\n\n```\n{\n \"visibility\": { // Control the visibility of toolbars, etc\n \"toolbar\": true, // Whether the toolbar is visible at all\n \"correctionBar\": true, // Whether the correction bar (undo/redo) is visible\n \"insertBar\": true, // Whether the insert bar (link, image, table) is visible\n \"styleMenu\": true, // Whether the style menu (p, h1-h6, code) is visible\n \"styleBar\": true, // Whether the style bar (bullet/numbered lists) is visible\n \"formatBar\": true, // Whether the format bar (b, i, u, etc) is visible\n \"search\": true, // Whether the search item (hide/show search bar) is visible\n },\n \"ordering\": { // Control the ordering of toolbars, etc, ascending left-to-right\n \"correctionBar\": 10, // Correction bar order if it is visible\n \"insertBar\": 20, // Insert bar (link, image, table) order if it is visible\n \"styleMenu\": 30, // Style menu (p, h1-h6, code) order if it is visible\n \"styleBar\": 40, // Style bar (bullet/numbered lists) order if it is visible\n \"formatBar\": 50, // Format bar (b, i, u, etc) order if it is visible\n \"search\": 60, // Search item (hide/show search bar) order if it is visible\n },\n \"insertBar\": {\n \"link\": true, // Whether the link menu item is visible\n \"image\": true, // Whether the image menu item is visible\n \"tableMenu\": true, // Whether the table menu is visible\n },\n \"formatBar\": {\n \"bold\": true, // Whether the bold menu item is visible\n \"italic\": true, // Whether the italic menu item is visible\n \"underline\": true, // Whether the underline menu item is visible\n \"code\": true, // Whether the code menu item is visible\n \"strikethrough\": true, // Whether the strikethrough menu item is visible\n \"subscript\": true, // Whether the subscript menu item is visible\n \"superscript\": true, // Whether the superscript menu item is visible\n },\n \"styleMenu\": {\n \"p\": \"Body\", // The label in the menu for \"P\" style\n \"h1\": \"H1\", // The label in the menu for \"H1\" style\n \"h2\": \"H2\", // The label in the menu for \"H2\" style\n \"h3\": \"H3\", // The label in the menu for \"H3\" style\n \"h4\": \"H4\", // The label in the menu for \"H4\" style\n \"h5\": \"H5\", // The label in the menu for \"H5\" style\n \"h6\": \"H6\", // The label in the menu for \"H6\" style\n \"pre\": \"Code\", // The label in the menu for \"PRE\" aka code_block style\n },\n \"styleBar\": {\n \"list\": true, // Whether bullet and numbered list items are visible\n \"dent\": true, // Whether indent and outdent items are visible\n },\n \"tableMenu\": {\n \"header\": true, // Whether the \"Header\" item is visible in the \"Table->Add\" menu\n \"border\": true, // Whether the \"Border\" item is visible in the \"Table\" menu\n },\n \"augmentation\": {\n \"prepend\": null, // Name of a registered array of cmdItems to prepend\n \"append\": null // Name of a registered array of cmdItems to append\n },\n \"icons\": {\n // <span class=\"material-icons-outlined\">undo</span>\n \"undo\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z\"/></svg>',\n // <span class=\"material-icons-outlined\">redo</span>\n \"redo\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_bold</span>\n \"strong\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_italic</span>\n \"em\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_underlined</span>\n \"u\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M200-120v-80h560v80H200Zm280-160q-101 0-157-63t-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63Z\"/></svg>',\n // <span class=\"material-icons-outlined\">strikethrough_s</span>\n \"s\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M486-160q-76 0-135-45t-85-123l88-38q14 48 48.5 79t85.5 31q42 0 76-20t34-64q0-18-7-33t-19-27h112q5 14 7.5 28.5T694-340q0 86-61.5 133T486-160ZM80-480v-80h800v80H80Zm402-326q66 0 115.5 32.5T674-674l-88 39q-9-29-33.5-52T484-710q-41 0-68 18.5T386-640h-96q2-69 54.5-117.5T482-806Z\"/></svg>',\n // <span class=\"material-icons-outlined\">data_object</span>\n \"code\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z\"/></svg>',\n // <span class=\"material-icons-outlined\">subscript</span>\n \"sub\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z\"/></svg>',\n // <span class=\"material-icons-outlined\">superscript</span>\n \"sup\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z\"/></svg>',\n // <span class=\"material-icons-outlined\">link</span>\n \"link\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zm-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2zm-3-4h8v2H8z\"/></svg>',\n // <span class=\"material-icons-outlined\">image</span>\n \"image\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z\"/></svg>',\n // <span class=\"material-icons-outlined\">table</span>\n \"table\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm240-240H200v160h240v-160Zm80 0v160h240v-160H520Zm-80-80v-160H200v160h240Zm80 0h240v-160H520v160ZM200-680h560v-80H200v80Z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_list_bulleted</span>\n \"bulletList\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M360-200v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360ZM200-160q-33 0-56.5-23.5T120-240q0-33 23.5-56.5T200-320q33 0 56.5 23.5T280-240q0 33-23.5 56.5T200-160Zm0-240q-33 0-56.5-23.5T120-480q0-33 23.5-56.5T200-560q33 0 56.5 23.5T280-480q0 33-23.5 56.5T200-400Zm0-240q-33 0-56.5-23.5T120-720q0-33 23.5-56.5T200-800q33 0 56.5 23.5T280-720q0 33-23.5 56.5T200-640Z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_list_numbered</span>\n \"orderedList\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_indent_increase</span>\n \"blockquote\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm0 440v-320l160 160-160 160Z\"/></svg>',\n // <span class=\"material-icons-outlined\">format_indent_decrease</span>\n \"lift\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\"><path d=\"M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm160 440L120-480l160-160v320Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">search</span>\n \"search\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">chevron_forward</span>\n \"searchForward\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">chevron_backward</span>\n \"searchBackward\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">match_case</span>\n \"matchCase\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"m131-252 165-440h79l165 440h-76l-39-112H247l-40 112h-76Zm139-176h131l-64-182h-4l-63 182Zm395 186q-51 0-81-27.5T554-342q0-44 34.5-72.5T677-443q23 0 45 4t38 11v-12q0-29-20.5-47T685-505q-23 0-42 9.5T610-468l-47-35q24-29 54.5-43t68.5-14q69 0 103 32.5t34 97.5v178h-63v-37h-4q-14 23-38 35t-53 12Zm12-54q35 0 59.5-24t24.5-56q-14-8-33.5-12.5T689-393q-32 0-50 14t-18 37q0 20 16 33t40 13Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">format_paragraph</span>\n \"paragraphStyle\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M360-160v-240q-83 0-141.5-58.5T160-600q0-83 58.5-141.5T360-800h360v80h-80v560h-80v-560H440v560h-80Z\"/></svg>',\n // <span class=\"material-symbols-outlined\">more_horiz</span>\n \"more\": '<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M240-400q-33 0-56.5-23.5T160-480q0-33 23.5-56.5T240-560q33 0 56.5 23.5T320-480q0 33-23.5 56.5T240-400Zm240 0q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm240 0q-33 0-56.5-23.5T640-480q0-33 23.5-56.5T720-560q33 0 56.5 23.5T800-480q0 33-23.5 56.5T720-400Z\"/></svg>'\n }\n}\n```",
|
|
3415
|
+
"name": "ToolbarConfig",
|
|
3416
|
+
"members": [
|
|
3417
|
+
{
|
|
3418
|
+
"kind": "method",
|
|
3419
|
+
"name": "fromJSON",
|
|
3420
|
+
"static": true,
|
|
3421
|
+
"parameters": [
|
|
3422
|
+
{
|
|
3423
|
+
"name": "string",
|
|
3424
|
+
"description": "A stringified object, perhaps used as an external definition of a toolbar configuration",
|
|
3425
|
+
"type": {
|
|
3426
|
+
"text": "string"
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
],
|
|
3430
|
+
"description": "Return a toolbar configuration object, but defined from a stringified JSON object.",
|
|
3431
|
+
"return": {
|
|
3432
|
+
"type": {
|
|
3433
|
+
"text": "object"
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"kind": "method",
|
|
3439
|
+
"name": "iconFor",
|
|
3440
|
+
"static": true,
|
|
3441
|
+
"parameters": [
|
|
3442
|
+
{
|
|
3443
|
+
"name": "string",
|
|
3444
|
+
"description": "The name of the icon to look up",
|
|
3445
|
+
"type": {
|
|
3446
|
+
"text": "string"
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
],
|
|
3450
|
+
"description": "Return the SVG for an icon with the given name.",
|
|
3451
|
+
"return": {
|
|
3452
|
+
"type": {
|
|
3453
|
+
"text": "string | null"
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
{
|
|
3458
|
+
"kind": "method",
|
|
3459
|
+
"name": "full",
|
|
3460
|
+
"static": true,
|
|
3461
|
+
"parameters": [
|
|
3462
|
+
{
|
|
3463
|
+
"name": "correction",
|
|
3464
|
+
"default": "false",
|
|
3465
|
+
"description": "True if the correction (undo/redo) bar should be included, else false",
|
|
3466
|
+
"type": {
|
|
3467
|
+
"text": "boolean"
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
],
|
|
3471
|
+
"description": "Return a toolbar configuration object with all options enabled, including undo/redo depending on `correction`.",
|
|
3472
|
+
"return": {
|
|
3473
|
+
"type": {
|
|
3474
|
+
"text": "object"
|
|
3475
|
+
}
|
|
3476
|
+
}
|
|
3477
|
+
},
|
|
3478
|
+
{
|
|
3479
|
+
"kind": "method",
|
|
3480
|
+
"name": "standard",
|
|
3481
|
+
"static": true,
|
|
3482
|
+
"parameters": [
|
|
3483
|
+
{
|
|
3484
|
+
"name": "correction",
|
|
3485
|
+
"default": "false",
|
|
3486
|
+
"description": "True if the correction (undo/redo) bar should be included, else false",
|
|
3487
|
+
"type": {
|
|
3488
|
+
"text": "boolean"
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
],
|
|
3492
|
+
"description": "Return a default toolbar configuration object, including undo/redo depending on `correction`.",
|
|
3493
|
+
"return": {
|
|
3494
|
+
"type": {
|
|
3495
|
+
"text": "object"
|
|
3496
|
+
}
|
|
3497
|
+
}
|
|
3498
|
+
},
|
|
3499
|
+
{
|
|
3500
|
+
"kind": "method",
|
|
3501
|
+
"name": "desktop",
|
|
3502
|
+
"static": true,
|
|
3503
|
+
"parameters": [
|
|
3504
|
+
{
|
|
3505
|
+
"name": "correction",
|
|
3506
|
+
"default": "false",
|
|
3507
|
+
"description": "True if the correction (undo/redo) bar should be included, else false",
|
|
3508
|
+
"type": {
|
|
3509
|
+
"text": "boolean"
|
|
3510
|
+
}
|
|
3511
|
+
}
|
|
3512
|
+
],
|
|
3513
|
+
"description": "Return the desktop toolbar configuration object, including undo/redo depending on `correction`. This is the same as `full()`.",
|
|
3514
|
+
"return": {
|
|
3515
|
+
"type": {
|
|
3516
|
+
"text": "object"
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"kind": "method",
|
|
3522
|
+
"name": "none",
|
|
3523
|
+
"static": true,
|
|
3524
|
+
"description": "Return a toolbar configuration object that prevents the toolbar from showing.",
|
|
3525
|
+
"return": {
|
|
3526
|
+
"type": {
|
|
3527
|
+
"text": "object"
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"kind": "method",
|
|
3533
|
+
"name": "markdown",
|
|
3534
|
+
"static": true,
|
|
3535
|
+
"parameters": [
|
|
3536
|
+
{
|
|
3537
|
+
"name": "correction",
|
|
3538
|
+
"default": "false",
|
|
3539
|
+
"description": "True if the correction (undo/redo) bar should be included, else false",
|
|
3540
|
+
"type": {
|
|
3541
|
+
"text": "boolean"
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
],
|
|
3545
|
+
"description": "Return the Markdown-oriented toolbar configuration object, including undo/redo depending on `correction`.\nThis toolbar excludes underline, and subscript/superscript.",
|
|
3546
|
+
"return": {
|
|
3547
|
+
"type": {
|
|
3548
|
+
"text": "object"
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
]
|
|
3553
|
+
}
|
|
3554
|
+
],
|
|
3555
|
+
"exports": [
|
|
3556
|
+
{
|
|
3557
|
+
"kind": "js",
|
|
3558
|
+
"name": "ToolbarConfig",
|
|
3559
|
+
"declaration": {
|
|
3560
|
+
"name": "ToolbarConfig",
|
|
3561
|
+
"module": "src/config/toolbarconfig.js"
|
|
3562
|
+
}
|
|
3563
|
+
}
|
|
3564
|
+
]
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
"kind": "javascript-module",
|
|
3568
|
+
"path": "src/config/keymapconfig.js",
|
|
3569
|
+
"declarations": [
|
|
3570
|
+
{
|
|
3571
|
+
"kind": "class",
|
|
3572
|
+
"description": "KeymapConfig contains static utility methods to obtain a JavaScript object with properties \nthat define the key mappingconfiguration of the MarkupEditor toolbar. The class makes it convenient \nto write and use the utility methods, but an instance of KeymapConfig itself is not meaningful.\n\n`KeymapConfig.standard()` is the default for the MarkupEditor. It can be overridden by \npassing a new KeymapConfig by name using the `keymap` attribute of the `<markup-editor>` \nelement. You can use the pre-defined static methods like `standard()` and customize what \nit returns, or you can use your own KeymapConfig.\n\nTo customize the key mapping, for example, in a `userscript` named `mykeymap.js`:\n\n```\nimport {MU} from \"src/markup-editor.js\"\nlet keymapConfig = MU.KeymapConfig.standard(); // Grab the standard keymap config as a baseline\nkeymapConfig.link = [\"Ctrl-L\", \"Ctrl-l\"]; // Use Control+L instead of Command+k\nMU.registerConfig(keymapConfig, \"MyKeymapConfig\") // Register the instance by name so we can reference it\n```\n\nThen, where you insert the `<markup-editor>` element, set the KeymapConfig by name:\n\n```\n<markup-editor userscript=\"mykeymap.js\" keymap=\"MyKeymapConfig\">\n```\n \nNote that the key mapping will exist and work regardless of whether you disable a toolbar \nor a specific item in a menu. For example, undo/redo by default map to Mod-z/Shift-Mod-z even \nthough the \"correctionBar\" is off by default in the MarkupEditor. You can remove a key mapping \nby setting its value to null or an empty string. \n\nThe following properties are supported:\n\n```\n{\n // Correction\n \"undo\": \"Mod-z\",\n \"redo\": \"Shift-Mod-z\",\n // Insert\n \"link\": [\"Mod-K\", \"Mod-k\"],\n \"image\": [\"Mod-G\", \"Mod-g\"],\n //\"table\": [\"Mod-T\", \"Mod-t\"], // Does not work\n // Stylemenu\n \"p\": \"Ctrl-Shift-0\",\n \"h1\": \"Ctrl-Shift-1\",\n \"h2\": \"Ctrl-Shift-2\",\n \"h3\": \"Ctrl-Shift-3\",\n \"h4\": \"Ctrl-Shift-4\",\n \"h5\": \"Ctrl-Shift-5\",\n \"h6\": \"Ctrl-Shift-6\",\n // Stylebar\n \"bullet\": [\"Ctrl-U\", \"Ctrl-u\"],\n \"number\": [\"Ctrl-O\", \"Ctrl-o\"],\n \"indent\": [\"Mod-]\", \"Ctrl-q\"],\n \"outdent\": [\"Mod-[\", \"Shift-Ctrl-q\"],\n // Format\n \"bold\": [\"Mod-B\", \"Mod-b\"],\n \"italic\": [\"Mod-I\", \"Mod-i\"],\n \"underline\": [\"Mod-U\", \"Mod-u\"],\n \"strikethrough\": [\"Ctrl-S\", \"Ctrl-s\"],\n \"code\": \"Mod-`\",\n \"subscript\": \"Ctrl-Mod--\",\n \"superscript\": \"Ctrl-Mod-+\",\n // Search\n \"search\": [\"Ctrl-F\", \"Ctrl-f\"],\n}\n```",
|
|
3573
|
+
"name": "KeymapConfig",
|
|
3574
|
+
"members": [
|
|
3575
|
+
{
|
|
3576
|
+
"kind": "method",
|
|
3577
|
+
"name": "fromJSON",
|
|
3578
|
+
"static": true,
|
|
3579
|
+
"parameters": [
|
|
3580
|
+
{
|
|
3581
|
+
"name": "string",
|
|
3582
|
+
"description": "A stringified object, perhaps used as an external definition of a keymap configuration",
|
|
3583
|
+
"type": {
|
|
3584
|
+
"text": "string"
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
],
|
|
3588
|
+
"description": "Return a keymap configuration object, but defined from a stringified JSON object.",
|
|
3589
|
+
"return": {
|
|
3590
|
+
"type": {
|
|
3591
|
+
"text": "object"
|
|
3592
|
+
}
|
|
3593
|
+
}
|
|
3594
|
+
},
|
|
3595
|
+
{
|
|
3596
|
+
"kind": "method",
|
|
3597
|
+
"name": "full",
|
|
3598
|
+
"static": true,
|
|
3599
|
+
"description": "Return a keymap configuration object with all options enabled.",
|
|
3600
|
+
"return": {
|
|
3601
|
+
"type": {
|
|
3602
|
+
"text": "object"
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
"kind": "method",
|
|
3608
|
+
"name": "standard",
|
|
3609
|
+
"static": true,
|
|
3610
|
+
"description": "Return a default keymap configuration object, corresponding to Markdown.",
|
|
3611
|
+
"return": {
|
|
3612
|
+
"type": {
|
|
3613
|
+
"text": "object"
|
|
3614
|
+
}
|
|
3615
|
+
}
|
|
3616
|
+
},
|
|
3617
|
+
{
|
|
3618
|
+
"kind": "method",
|
|
3619
|
+
"name": "desktop",
|
|
3620
|
+
"static": true,
|
|
3621
|
+
"description": "Return the desktop keymap configuration object. This is the same as `full()`.",
|
|
3622
|
+
"return": {
|
|
3623
|
+
"type": {
|
|
3624
|
+
"text": "object"
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"kind": "method",
|
|
3630
|
+
"name": "markdown",
|
|
3631
|
+
"static": true,
|
|
3632
|
+
"description": "Return the Markdown-oriented keymap configuration object.\nThis keymap excludes underline, and subscript/superscript.",
|
|
3633
|
+
"return": {
|
|
3634
|
+
"type": {
|
|
3635
|
+
"text": "object"
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
]
|
|
3640
|
+
}
|
|
3641
|
+
],
|
|
3642
|
+
"exports": [
|
|
3643
|
+
{
|
|
3644
|
+
"kind": "js",
|
|
3645
|
+
"name": "KeymapConfig",
|
|
3646
|
+
"declaration": {
|
|
3647
|
+
"name": "KeymapConfig",
|
|
3648
|
+
"module": "src/config/keymapconfig.js"
|
|
3649
|
+
}
|
|
3650
|
+
}
|
|
3651
|
+
]
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"kind": "javascript-module",
|
|
3655
|
+
"path": "src/config/behaviorconfig.js",
|
|
3656
|
+
"declarations": [
|
|
3657
|
+
{
|
|
3658
|
+
"kind": "class",
|
|
3659
|
+
"description": "BehaviorConfig contains static utility methods to obtain a JavaScript object with properties \nthat define the behavior configuration of the MarkupEditor. The class makes it convenient \nto write and use the utility methods, but an instance of BehaviorConfig itself is not meaningful.\n\n`BehaviorConfig.standard()` is the default for the MarkupEditor. It can be overridden by \npassing a new BehaviorConfig by name using the `behavior` attribute of the `<markup-editor> `\nelement. You can use the pre-defined static methods like `standard()` and customize what \nit returns, or you can use your own BehaviorConfig.\n\nTo customize the behavior config, for example, in a `userscript` named `mybehavior.js`:\n\n```\nimport {MU} from \"src/markup-editor.js\"\nlet behaviorConfig = MU.BehaviorConfig.desktop() // Use the desktop config as a baseline\nMU.registerConfig(behaviorConfig, \"MyBehaviorConfig\") // Register the instance by name so we can reference it\n```\n\nThen, where you insert the `<markup-editor>` element, set the BehaviorConfig by name:\n\n```\n<markup-editor userscript=\"mybehavior.js\" behavior=\"MyBehaviorConfig\">\n```\n \nBehaviorConfig lets you control whether the editor takes focus immediately or not, and\nallows you to defer to the MarkupDelegate for insert options, so you can use your own \n(perhaps \"native\") dialogs for file selection, link insertion, and image insertion.\n\nThe following properties are supported:\n\n```\n{\n \"focusAfterLoad\": true, // Whether the editor should take focus after loading\n \"selectImage\": false, // Whether to show a \"Select...\" button in the Insert Image dialog\n \"insertLink\": false, // Whether to defer to the MarkupDelegate rather than use the default LinkDialog\n \"insertImage\": false, // Whether to defer to the MarkupDelagate rather than use the default ImageDialog\n}\n```",
|
|
3660
|
+
"name": "BehaviorConfig",
|
|
3661
|
+
"members": [
|
|
3662
|
+
{
|
|
3663
|
+
"kind": "method",
|
|
3664
|
+
"name": "fromJSON",
|
|
3665
|
+
"static": true,
|
|
3666
|
+
"parameters": [
|
|
3667
|
+
{
|
|
3668
|
+
"name": "string",
|
|
3669
|
+
"description": "A stringified object, perhaps used as an external definition of a behavior configuration",
|
|
3670
|
+
"type": {
|
|
3671
|
+
"text": "string"
|
|
3672
|
+
}
|
|
3673
|
+
}
|
|
3674
|
+
],
|
|
3675
|
+
"description": "Return a behavior configuration object, but defined from a stringified JSON object.",
|
|
3676
|
+
"return": {
|
|
3677
|
+
"type": {
|
|
3678
|
+
"text": "object"
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"kind": "method",
|
|
3684
|
+
"name": "full",
|
|
3685
|
+
"static": true,
|
|
3686
|
+
"description": "Return a behavior configuration object with all options enabled.",
|
|
3687
|
+
"return": {
|
|
3688
|
+
"type": {
|
|
3689
|
+
"text": "object"
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
},
|
|
3693
|
+
{
|
|
3694
|
+
"kind": "method",
|
|
3695
|
+
"name": "standard",
|
|
3696
|
+
"static": true,
|
|
3697
|
+
"description": "Return a default behavior configuration object.",
|
|
3698
|
+
"return": {
|
|
3699
|
+
"type": {
|
|
3700
|
+
"text": "object"
|
|
3701
|
+
}
|
|
3702
|
+
}
|
|
3703
|
+
},
|
|
3704
|
+
{
|
|
3705
|
+
"kind": "method",
|
|
3706
|
+
"name": "desktop",
|
|
3707
|
+
"static": true,
|
|
3708
|
+
"description": "Return the desktop behavior configuration object. This is the same as `full()` but with `selectImage` enabled.",
|
|
3709
|
+
"return": {
|
|
3710
|
+
"type": {
|
|
3711
|
+
"text": "object"
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
]
|
|
3716
|
+
}
|
|
3717
|
+
],
|
|
3718
|
+
"exports": [
|
|
3719
|
+
{
|
|
3720
|
+
"kind": "js",
|
|
3721
|
+
"name": "BehaviorConfig",
|
|
3722
|
+
"declaration": {
|
|
3723
|
+
"name": "BehaviorConfig",
|
|
3724
|
+
"module": "src/config/behaviorconfig.js"
|
|
3725
|
+
}
|
|
3726
|
+
}
|
|
3727
|
+
]
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
"kind": "javascript-module",
|
|
3731
|
+
"path": "src/registry.js",
|
|
3732
|
+
"declarations": [
|
|
3733
|
+
{
|
|
3734
|
+
"kind": "function",
|
|
3735
|
+
"name": "activeView",
|
|
3736
|
+
"description": "Return the active editor's `view`.",
|
|
3737
|
+
"return": {
|
|
3738
|
+
"type": {
|
|
3739
|
+
"text": "EditorView | null"
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"kind": "function",
|
|
3745
|
+
"name": "registerAugmentation",
|
|
3746
|
+
"parameters": [
|
|
3747
|
+
{
|
|
3748
|
+
"name": "toolbar",
|
|
3749
|
+
"description": "A toolbar that holds `cmdItems`.",
|
|
3750
|
+
"type": {
|
|
3751
|
+
"text": "object"
|
|
3752
|
+
}
|
|
3753
|
+
},
|
|
3754
|
+
{
|
|
3755
|
+
"name": "name",
|
|
3756
|
+
"description": "A name used to retrieve the `toolbar`.",
|
|
3757
|
+
"type": {
|
|
3758
|
+
"text": "string"
|
|
3759
|
+
}
|
|
3760
|
+
}
|
|
3761
|
+
],
|
|
3762
|
+
"description": "Add the `toolbar` to the registry.\nA toolbar holds `cmdItems` that can either be prepended or appended to \nthe normal MarkupEditor toolbar.\n\nIf `name` is supplied, it is used to track it; else, \nthe class of `toolbar`, derived using `toolbar.constructor.name`\nis used."
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"kind": "function",
|
|
3766
|
+
"name": "registerConfig",
|
|
3767
|
+
"parameters": [
|
|
3768
|
+
{
|
|
3769
|
+
"name": "config",
|
|
3770
|
+
"description": "One of the \"configs\" from the MarkupEditor API or appropriate object.",
|
|
3771
|
+
"type": {
|
|
3772
|
+
"text": "ToolbarConfig | KeymapConfig | BehaviorConfig | object"
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
"name": "name",
|
|
3777
|
+
"description": "A name used to retrieve the `config`.",
|
|
3778
|
+
"type": {
|
|
3779
|
+
"text": "string"
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3782
|
+
],
|
|
3783
|
+
"description": "Add the `config` to the registry. \nIf `name` is supplied, it is used to track it; else, \nthe class of `config`, derived using `config.constructor.name`\nis used."
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"kind": "function",
|
|
3787
|
+
"name": "registerDelegate",
|
|
3788
|
+
"parameters": [
|
|
3789
|
+
{
|
|
3790
|
+
"name": "delegate",
|
|
3791
|
+
"description": "A MarkupDelegate or appropriate object.",
|
|
3792
|
+
"type": {
|
|
3793
|
+
"text": "MarkupDelegate | object"
|
|
3794
|
+
}
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
"name": "name",
|
|
3798
|
+
"description": "A name used to retrieve the `delegate`.",
|
|
3799
|
+
"type": {
|
|
3800
|
+
"text": "string"
|
|
3801
|
+
}
|
|
3802
|
+
}
|
|
3803
|
+
],
|
|
3804
|
+
"description": "Add the `delegate` to the registry. \nIf `name` is supplied, it is used to track it; else, \nthe class of `delegate`, derived using `delegate.constructor.name`\nis used."
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
"kind": "function",
|
|
3808
|
+
"name": "registerMessageHandler",
|
|
3809
|
+
"parameters": [
|
|
3810
|
+
{
|
|
3811
|
+
"name": "handler",
|
|
3812
|
+
"description": "An instance of MessageHandler or appropriate object.",
|
|
3813
|
+
"type": {
|
|
3814
|
+
"text": "MessageHandler | object"
|
|
3815
|
+
}
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"name": "name",
|
|
3819
|
+
"description": "A name used to retrieve the `config`.",
|
|
3820
|
+
"type": {
|
|
3821
|
+
"text": "string"
|
|
3822
|
+
}
|
|
3823
|
+
}
|
|
3824
|
+
],
|
|
3825
|
+
"description": "Add the `handler` to the registry. \nIf `name` is supplied, it is used to track it; else, \nthe class of `handler`, derived using `handler.constructor.name`\nis used."
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
"kind": "variable",
|
|
3829
|
+
"name": "registerEditor"
|
|
3830
|
+
},
|
|
3831
|
+
{
|
|
3832
|
+
"kind": "variable",
|
|
3833
|
+
"name": "unregisterEditor"
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"kind": "variable",
|
|
3837
|
+
"name": "unregisterDelegate"
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"kind": "variable",
|
|
3841
|
+
"name": "getDelegate"
|
|
3842
|
+
},
|
|
3843
|
+
{
|
|
3844
|
+
"kind": "variable",
|
|
3845
|
+
"name": "unregisterConfig"
|
|
3846
|
+
},
|
|
3847
|
+
{
|
|
3848
|
+
"kind": "variable",
|
|
3849
|
+
"name": "getConfig"
|
|
3850
|
+
},
|
|
3851
|
+
{
|
|
3852
|
+
"kind": "variable",
|
|
3853
|
+
"name": "unregisterMessageHandler"
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"kind": "variable",
|
|
3857
|
+
"name": "getMessageHandler"
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"kind": "variable",
|
|
3861
|
+
"name": "unregisterAugmentation"
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
"kind": "variable",
|
|
3865
|
+
"name": "getAugmentation"
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
"kind": "variable",
|
|
3869
|
+
"name": "activeEditor"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"kind": "variable",
|
|
3873
|
+
"name": "setActiveView"
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"kind": "variable",
|
|
3877
|
+
"name": "activeDocument"
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
"kind": "variable",
|
|
3881
|
+
"name": "setActiveDocument"
|
|
3882
|
+
},
|
|
3883
|
+
{
|
|
3884
|
+
"kind": "variable",
|
|
3885
|
+
"name": "activeEditorElement"
|
|
3886
|
+
},
|
|
3887
|
+
{
|
|
3888
|
+
"kind": "variable",
|
|
3889
|
+
"name": "activeMessageHandler"
|
|
3890
|
+
},
|
|
3891
|
+
{
|
|
3892
|
+
"kind": "variable",
|
|
3893
|
+
"name": "activeSearcher"
|
|
3894
|
+
},
|
|
3895
|
+
{
|
|
3896
|
+
"kind": "variable",
|
|
3897
|
+
"name": "activeConfig"
|
|
3898
|
+
},
|
|
3899
|
+
{
|
|
3900
|
+
"kind": "variable",
|
|
3901
|
+
"name": "selectedID"
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"kind": "variable",
|
|
3905
|
+
"name": "setSelectedID"
|
|
3906
|
+
}
|
|
3907
|
+
],
|
|
3908
|
+
"exports": [
|
|
3909
|
+
{
|
|
3910
|
+
"kind": "js",
|
|
3911
|
+
"name": "activeView",
|
|
3912
|
+
"declaration": {
|
|
3913
|
+
"name": "activeView",
|
|
3914
|
+
"module": "src/registry.js"
|
|
3915
|
+
}
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
"kind": "js",
|
|
3919
|
+
"name": "registerAugmentation",
|
|
3920
|
+
"declaration": {
|
|
3921
|
+
"name": "registerAugmentation",
|
|
3922
|
+
"module": "src/registry.js"
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
"kind": "js",
|
|
3927
|
+
"name": "registerConfig",
|
|
3928
|
+
"declaration": {
|
|
3929
|
+
"name": "registerConfig",
|
|
3930
|
+
"module": "src/registry.js"
|
|
3931
|
+
}
|
|
3932
|
+
},
|
|
3933
|
+
{
|
|
3934
|
+
"kind": "js",
|
|
3935
|
+
"name": "registerDelegate",
|
|
3936
|
+
"declaration": {
|
|
3937
|
+
"name": "registerDelegate",
|
|
3938
|
+
"module": "src/registry.js"
|
|
3939
|
+
}
|
|
3940
|
+
},
|
|
3941
|
+
{
|
|
3942
|
+
"kind": "js",
|
|
3943
|
+
"name": "registerMessageHandler",
|
|
3944
|
+
"declaration": {
|
|
3945
|
+
"name": "registerMessageHandler",
|
|
3946
|
+
"module": "src/registry.js"
|
|
3947
|
+
}
|
|
3948
|
+
},
|
|
3949
|
+
{
|
|
3950
|
+
"kind": "js",
|
|
3951
|
+
"name": "registerEditor",
|
|
3952
|
+
"declaration": {
|
|
3953
|
+
"name": "registerEditor",
|
|
3954
|
+
"module": "src/registry.js"
|
|
3955
|
+
}
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"kind": "js",
|
|
3959
|
+
"name": "unregisterEditor",
|
|
3960
|
+
"declaration": {
|
|
3961
|
+
"name": "unregisterEditor",
|
|
3962
|
+
"module": "src/registry.js"
|
|
3963
|
+
}
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
"kind": "js",
|
|
3967
|
+
"name": "unregisterDelegate",
|
|
3968
|
+
"declaration": {
|
|
3969
|
+
"name": "unregisterDelegate",
|
|
3970
|
+
"module": "src/registry.js"
|
|
3971
|
+
}
|
|
3972
|
+
},
|
|
3973
|
+
{
|
|
3974
|
+
"kind": "js",
|
|
3975
|
+
"name": "getDelegate",
|
|
3976
|
+
"declaration": {
|
|
3977
|
+
"name": "getDelegate",
|
|
3978
|
+
"module": "src/registry.js"
|
|
3979
|
+
}
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"kind": "js",
|
|
3983
|
+
"name": "unregisterConfig",
|
|
3984
|
+
"declaration": {
|
|
3985
|
+
"name": "unregisterConfig",
|
|
3986
|
+
"module": "src/registry.js"
|
|
3987
|
+
}
|
|
3988
|
+
},
|
|
3989
|
+
{
|
|
3990
|
+
"kind": "js",
|
|
3991
|
+
"name": "getConfig",
|
|
3992
|
+
"declaration": {
|
|
3993
|
+
"name": "getConfig",
|
|
3994
|
+
"module": "src/registry.js"
|
|
3995
|
+
}
|
|
3996
|
+
},
|
|
3997
|
+
{
|
|
3998
|
+
"kind": "js",
|
|
3999
|
+
"name": "unregisterMessageHandler",
|
|
4000
|
+
"declaration": {
|
|
4001
|
+
"name": "unregisterMessageHandler",
|
|
4002
|
+
"module": "src/registry.js"
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
"kind": "js",
|
|
4007
|
+
"name": "getMessageHandler",
|
|
4008
|
+
"declaration": {
|
|
4009
|
+
"name": "getMessageHandler",
|
|
4010
|
+
"module": "src/registry.js"
|
|
4011
|
+
}
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
"kind": "js",
|
|
4015
|
+
"name": "unregisterAugmentation",
|
|
4016
|
+
"declaration": {
|
|
4017
|
+
"name": "unregisterAugmentation",
|
|
4018
|
+
"module": "src/registry.js"
|
|
4019
|
+
}
|
|
4020
|
+
},
|
|
4021
|
+
{
|
|
4022
|
+
"kind": "js",
|
|
4023
|
+
"name": "getAugmentation",
|
|
4024
|
+
"declaration": {
|
|
4025
|
+
"name": "getAugmentation",
|
|
4026
|
+
"module": "src/registry.js"
|
|
4027
|
+
}
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
"kind": "js",
|
|
4031
|
+
"name": "activeEditor",
|
|
4032
|
+
"declaration": {
|
|
4033
|
+
"name": "activeEditor",
|
|
4034
|
+
"module": "src/registry.js"
|
|
4035
|
+
}
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
"kind": "js",
|
|
4039
|
+
"name": "setActiveView",
|
|
4040
|
+
"declaration": {
|
|
4041
|
+
"name": "setActiveView",
|
|
4042
|
+
"module": "src/registry.js"
|
|
4043
|
+
}
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
"kind": "js",
|
|
4047
|
+
"name": "activeDocument",
|
|
4048
|
+
"declaration": {
|
|
4049
|
+
"name": "activeDocument",
|
|
4050
|
+
"module": "src/registry.js"
|
|
4051
|
+
}
|
|
4052
|
+
},
|
|
4053
|
+
{
|
|
4054
|
+
"kind": "js",
|
|
4055
|
+
"name": "setActiveDocument",
|
|
4056
|
+
"declaration": {
|
|
4057
|
+
"name": "setActiveDocument",
|
|
4058
|
+
"module": "src/registry.js"
|
|
4059
|
+
}
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"kind": "js",
|
|
4063
|
+
"name": "activeEditorElement",
|
|
4064
|
+
"declaration": {
|
|
4065
|
+
"name": "activeEditorElement",
|
|
4066
|
+
"module": "src/registry.js"
|
|
4067
|
+
}
|
|
4068
|
+
},
|
|
4069
|
+
{
|
|
4070
|
+
"kind": "js",
|
|
4071
|
+
"name": "activeMessageHandler",
|
|
4072
|
+
"declaration": {
|
|
4073
|
+
"name": "activeMessageHandler",
|
|
4074
|
+
"module": "src/registry.js"
|
|
4075
|
+
}
|
|
4076
|
+
},
|
|
4077
|
+
{
|
|
4078
|
+
"kind": "js",
|
|
4079
|
+
"name": "activeSearcher",
|
|
4080
|
+
"declaration": {
|
|
4081
|
+
"name": "activeSearcher",
|
|
4082
|
+
"module": "src/registry.js"
|
|
4083
|
+
}
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
"kind": "js",
|
|
4087
|
+
"name": "activeConfig",
|
|
4088
|
+
"declaration": {
|
|
4089
|
+
"name": "activeConfig",
|
|
4090
|
+
"module": "src/registry.js"
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
"kind": "js",
|
|
4095
|
+
"name": "selectedID",
|
|
4096
|
+
"declaration": {
|
|
4097
|
+
"name": "selectedID",
|
|
4098
|
+
"module": "src/registry.js"
|
|
4099
|
+
}
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
"kind": "js",
|
|
4103
|
+
"name": "setSelectedID",
|
|
4104
|
+
"declaration": {
|
|
4105
|
+
"name": "setSelectedID",
|
|
4106
|
+
"module": "src/registry.js"
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
]
|
|
4110
|
+
}
|
|
4111
|
+
]
|
|
4112
|
+
}
|