markupeditor 0.9.0 → 0.9.1
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/dist/custom-elements.json +19 -13
- package/dist/markup-editor.js +9 -2
- package/package.json +3 -2
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"type": {
|
|
139
139
|
"text": "object"
|
|
140
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, }",
|
|
141
|
+
"default": "{ activeConfig, 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
142
|
"description": "The object whose methods comprise the MarkupEditor API."
|
|
143
143
|
}
|
|
144
144
|
],
|
|
@@ -3730,6 +3730,16 @@
|
|
|
3730
3730
|
"kind": "javascript-module",
|
|
3731
3731
|
"path": "src/registry.js",
|
|
3732
3732
|
"declarations": [
|
|
3733
|
+
{
|
|
3734
|
+
"kind": "function",
|
|
3735
|
+
"name": "activeConfig",
|
|
3736
|
+
"description": "Return the active editor's configurations as one object keyed to the config type.",
|
|
3737
|
+
"return": {
|
|
3738
|
+
"type": {
|
|
3739
|
+
"text": "object | null"
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
},
|
|
3733
3743
|
{
|
|
3734
3744
|
"kind": "function",
|
|
3735
3745
|
"name": "activeView",
|
|
@@ -3892,10 +3902,6 @@
|
|
|
3892
3902
|
"kind": "variable",
|
|
3893
3903
|
"name": "activeSearcher"
|
|
3894
3904
|
},
|
|
3895
|
-
{
|
|
3896
|
-
"kind": "variable",
|
|
3897
|
-
"name": "activeConfig"
|
|
3898
|
-
},
|
|
3899
3905
|
{
|
|
3900
3906
|
"kind": "variable",
|
|
3901
3907
|
"name": "selectedID"
|
|
@@ -3906,6 +3912,14 @@
|
|
|
3906
3912
|
}
|
|
3907
3913
|
],
|
|
3908
3914
|
"exports": [
|
|
3915
|
+
{
|
|
3916
|
+
"kind": "js",
|
|
3917
|
+
"name": "activeConfig",
|
|
3918
|
+
"declaration": {
|
|
3919
|
+
"name": "activeConfig",
|
|
3920
|
+
"module": "src/registry.js"
|
|
3921
|
+
}
|
|
3922
|
+
},
|
|
3909
3923
|
{
|
|
3910
3924
|
"kind": "js",
|
|
3911
3925
|
"name": "activeView",
|
|
@@ -4082,14 +4096,6 @@
|
|
|
4082
4096
|
"module": "src/registry.js"
|
|
4083
4097
|
}
|
|
4084
4098
|
},
|
|
4085
|
-
{
|
|
4086
|
-
"kind": "js",
|
|
4087
|
-
"name": "activeConfig",
|
|
4088
|
-
"declaration": {
|
|
4089
|
-
"name": "activeConfig",
|
|
4090
|
-
"module": "src/registry.js"
|
|
4091
|
-
}
|
|
4092
|
-
},
|
|
4093
4099
|
{
|
|
4094
4100
|
"kind": "js",
|
|
4095
4101
|
"name": "selectedID",
|
package/dist/markup-editor.js
CHANGED
|
@@ -237,10 +237,17 @@ class Registry {
|
|
|
237
237
|
*/
|
|
238
238
|
const _registry = new Registry();
|
|
239
239
|
|
|
240
|
+
/**
|
|
241
|
+
* Return the active editor's configurations as one object keyed to the config type.
|
|
242
|
+
*
|
|
243
|
+
* @returns {object | null} Object containing {"toolbar": ToolbarConfig, "keymap": KeymapConfig, "behavior": BehaviorConfig}.
|
|
244
|
+
*/
|
|
245
|
+
function activeConfig() {_registry.activeConfig.bind(_registry)();}
|
|
246
|
+
|
|
240
247
|
/**
|
|
241
248
|
* Return the active editor's `view`.
|
|
242
249
|
*
|
|
243
|
-
* @returns {EditorView | null} The ProseMirror
|
|
250
|
+
* @returns {EditorView | null} The ProseMirror EditorView that is currently active.
|
|
244
251
|
*/
|
|
245
252
|
function activeView() {return _registry.activeView.bind(_registry)()}
|
|
246
253
|
|
|
@@ -309,7 +316,6 @@ const setActiveDocument = _registry.setActiveDocument.bind(_registry);
|
|
|
309
316
|
const activeEditorElement = _registry.activeEditorElement.bind(_registry);
|
|
310
317
|
_registry.activeMessageHandler.bind(_registry);
|
|
311
318
|
const activeSearcher = _registry.activeSearcher.bind(_registry);
|
|
312
|
-
const activeConfig = _registry.activeConfig.bind(_registry);
|
|
313
319
|
const selectedID = _registry.selectedID.bind(_registry);
|
|
314
320
|
const setSelectedID = _registry.setSelectedID.bind(_registry);
|
|
315
321
|
|
|
@@ -24705,6 +24711,7 @@ class MarkupEditor {
|
|
|
24705
24711
|
* The object whose methods comprise the MarkupEditor API.
|
|
24706
24712
|
*/
|
|
24707
24713
|
const MU = {
|
|
24714
|
+
activeConfig,
|
|
24708
24715
|
activeView,
|
|
24709
24716
|
addButton,
|
|
24710
24717
|
addCol,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markupeditor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "A web component and API for WYSIWYG HTML editing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"pretest": "npm run build",
|
|
64
64
|
"docs": "node ./docs/index.js",
|
|
65
65
|
"predocs": "sh predocs.sh && jsdoc -c jsdoc.json",
|
|
66
|
-
"analyze": "cem analyze --config custom-elements-manifest.config.js"
|
|
66
|
+
"analyze": "cem analyze --config custom-elements-manifest.config.js",
|
|
67
|
+
"publish": "npm run build && npm run predocs && npm run analyze && npm publish --access public"
|
|
67
68
|
},
|
|
68
69
|
"customElements": "dist/custom-elements.json"
|
|
69
70
|
}
|