@progress/kendo-editor-common 1.9.1-dev.202205300804 → 1.9.1-dev.202206231329
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/cdn/js/kendo-editor-common.js +1 -16
- package/dist/cdn/main.js +1 -1
- package/dist/es/blockNode.js +5 -5
- package/dist/es/config/indent-rules.js +3 -3
- package/dist/es/config/keymap.js +4 -4
- package/dist/es/config/list-settings.js +3 -3
- package/dist/es/config/schema.js +27 -27
- package/dist/es/find-replace.js +2 -2
- package/dist/es/inline-style.js +5 -5
- package/dist/es/lists.js +3 -3
- package/dist/es/main.js +1 -1
- package/dist/es/mark.js +2 -2
- package/dist/es/plugins/image-resize.js +3 -3
- package/dist/es/plugins/table-resize/column-resize.js +4 -4
- package/dist/es/plugins/table-resize/row-resize.js +1 -1
- package/dist/es/plugins/table-resize/table-resize.js +9 -9
- package/dist/es/plugins/table-resize/utils.js +5 -5
- package/dist/es/table.js +1 -1
- package/dist/es/types/active-marks.js +1 -0
- package/dist/es/types/command.js +1 -0
- package/dist/es/types/dispatchFn.js +1 -0
- package/dist/es/types/paste-cleanup-settings.js +1 -0
- package/dist/es/types/predicate.js +1 -0
- package/dist/es2015/blockNode.js +5 -5
- package/dist/es2015/config/keymap.js +3 -3
- package/dist/es2015/config/schema.js +17 -17
- package/dist/es2015/find-replace.js +2 -2
- package/dist/es2015/inline-style.js +3 -3
- package/dist/es2015/main.js +1 -1
- package/dist/es2015/plugins/image-resize.js +2 -2
- package/dist/es2015/plugins/table-resize/column-resize.js +3 -3
- package/dist/es2015/plugins/table-resize/row-resize.js +1 -1
- package/dist/es2015/plugins/table-resize/table-resize.js +5 -5
- package/dist/es2015/plugins/table-resize/utils.js +4 -4
- package/dist/es2015/table.js +1 -1
- package/dist/es2015/types/active-marks.js +1 -0
- package/dist/es2015/types/command.js +1 -0
- package/dist/es2015/types/dispatchFn.js +1 -0
- package/dist/es2015/types/paste-cleanup-settings.js +1 -0
- package/dist/es2015/types/predicate.js +1 -0
- package/dist/npm/align.d.ts +2 -2
- package/dist/npm/align.js +5 -2
- package/dist/npm/blockNode.d.ts +13 -13
- package/dist/npm/blockNode.js +20 -10
- package/dist/npm/blockquote.d.ts +2 -2
- package/dist/npm/blockquote.js +5 -2
- package/dist/npm/cleanFormatting.d.ts +1 -1
- package/dist/npm/cleanFormatting.js +3 -1
- package/dist/npm/config/align-rules.js +1 -0
- package/dist/npm/config/commands.js +1 -0
- package/dist/npm/config/constants.js +1 -0
- package/dist/npm/config/indent-rules.js +1 -0
- package/dist/npm/config/keymap.d.ts +2 -2
- package/dist/npm/config/keymap.js +8 -5
- package/dist/npm/config/list-settings.js +1 -0
- package/dist/npm/config/schema.js +21 -19
- package/dist/npm/find-replace.d.ts +9 -9
- package/dist/npm/find-replace.js +11 -5
- package/dist/npm/image.js +3 -1
- package/dist/npm/indent.d.ts +5 -5
- package/dist/npm/indent.js +15 -7
- package/dist/npm/inline-style.d.ts +3 -3
- package/dist/npm/inline-style.js +11 -7
- package/dist/npm/link.js +5 -2
- package/dist/npm/listConvert.js +3 -1
- package/dist/npm/lists.d.ts +4 -6
- package/dist/npm/lists.js +7 -3
- package/dist/npm/main.d.ts +1 -1
- package/dist/npm/main.js +146 -143
- package/dist/npm/mark.d.ts +10 -10
- package/dist/npm/mark.js +25 -13
- package/dist/npm/paste.js +17 -8
- package/dist/npm/plugins/caret-color.d.ts +1 -1
- package/dist/npm/plugins/caret-color.js +1 -0
- package/dist/npm/plugins/highlight.d.ts +1 -1
- package/dist/npm/plugins/highlight.js +1 -0
- package/dist/npm/plugins/image-resize.d.ts +24 -3
- package/dist/npm/plugins/image-resize.js +5 -3
- package/dist/npm/plugins/placeholder.js +1 -0
- package/dist/npm/plugins/resize-utils.d.ts +8 -8
- package/dist/npm/plugins/resize-utils.js +1 -0
- package/dist/npm/plugins/spaces-fix.d.ts +1 -1
- package/dist/npm/plugins/spaces-fix.js +3 -1
- package/dist/npm/plugins/table-resize/column-resize.js +8 -7
- package/dist/npm/plugins/table-resize/index.d.ts +1 -1
- package/dist/npm/plugins/table-resize/index.js +6 -4
- package/dist/npm/plugins/table-resize/row-resize.js +5 -4
- package/dist/npm/plugins/table-resize/table-resize.d.ts +16 -2
- package/dist/npm/plugins/table-resize/table-resize.js +8 -6
- package/dist/npm/plugins/table-resize/table-view.js +1 -0
- package/dist/npm/plugins/table-resize/utils.d.ts +4 -4
- package/dist/npm/plugins/table-resize/utils.js +7 -5
- package/dist/npm/source.d.ts +6 -6
- package/dist/npm/source.js +15 -7
- package/dist/npm/table.d.ts +7 -7
- package/dist/npm/table.js +12 -8
- package/dist/npm/text.js +3 -1
- package/dist/npm/utils.d.ts +8 -8
- package/dist/npm/utils.js +25 -12
- package/dist/systemjs/kendo-editor-common.js +1 -1
- package/package.json +15 -26
package/dist/npm/main.js
CHANGED
|
@@ -1,130 +1,133 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.expandToWordWrap = exports.expandSelection = exports.selectedLineTextOnly = exports.getNodeFromSelection = exports.getSelectionText = exports.hasSameMarkup = exports.liftBlockquote = exports.blockquote = exports.listStyle = exports.toggleList = exports.toggleUnorderedList = exports.toggleOrderedList = exports.indentBlocks = exports.canBeIndented = exports.isIndented = exports.canOutdentAsListItem = exports.outdent = exports.canIndentAsListItem = exports.indent = exports.selectionMarks = exports.cleanMarks = exports.removeAllMarks = exports.getActiveMarks = exports.getMark = exports.hasMark = exports.cleanTextBlockFormatting = exports.blockNodes = exports.changeTextBlock = exports.parentBlockFormat = exports.getBlockFormats = exports.formatBlockElements = exports.activeNode = exports.hasNode = exports.cleanFormatting = exports.isAligned = exports.alignBlocks = exports.insertImage = exports.insertText = exports.removeLink = exports.applyLink = exports.toggleInlineFormat = exports.getInlineStyles = exports.applyInlineStyle = exports.pmDocToFragment = exports.domToPmDoc = exports.htmlToFragment = exports.trimWhitespace = exports.parseContent = exports.setHtml = exports.getHtml = void 0;
|
|
4
|
+
exports.tableEditingKey = exports.tableEditing = exports.TableMap = exports.tableRowResizeKey = exports.tableColumnResizeKey = exports.tableResizeKey = exports.tableResizing = exports.caretColorKey = exports.caretColor = exports.imageResizeKey = exports.imageResizing = exports.textHighlightKey = exports.textHighlight = exports.spacesFix = exports.placeholder = exports.replaceAll = exports.replace = exports.findAll = exports.findAt = exports.find = exports.convertMsLists = exports.replaceImageSourcesFromRtf = exports.removeAttribute = exports.sanitizeStyleAttr = exports.sanitizeClassAttr = exports.pasteCleanup = exports.removeTag = exports.removeComments = exports.sanitize = exports.link = exports.superscript = exports.subscript = exports.strikethrough = exports.underline = exports.italic = exports.bold = exports.buildListKeymap = exports.buildKeymap = exports.marks = exports.nodes = exports.outdentRules = exports.indentRules = exports.alignRemoveRules = exports.alignJustifyRules = exports.alignRightRules = exports.alignCenterRules = exports.alignLeftRules = exports.indentHtml = exports.insertNode = exports.canInsert = void 0;
|
|
5
|
+
exports.pmAddRowBefore = exports.pmAddRowAfter = exports.addRowBefore = exports.addRowAfter = exports.createTable = exports.nextCell = exports.moveCellForward = exports.removeColSpan = exports.findCell = exports.cellAround = exports.updateColumnsOnResize = exports.columnResizingPluginKey = exports.columnResizing = exports.columnIsHeader = exports.colCount = exports.addColumnBefore = exports.addColumnAfter = exports.addColumn = exports.addColSpan = exports.addRow = exports.rowIsHeader = exports.deleteRow = exports.deleteColumn = exports.mergeCells = exports.splitCellWithType = exports.splitCell = exports.toggleHeaderRow = exports.toggleHeaderColumn = exports.toggleHeaderCell = exports.toggleHeader = exports.goToNextCell = exports.setCellAttr = exports.selectionCell = exports.selectedRect = exports.CellSelection = exports.inSameTable = exports.deleteTable = exports.isInTable = exports.fixTablesKey = exports.fixTables = exports.tableNodes = exports.tableNodeTypes = void 0;
|
|
3
6
|
var tslib_1 = require("tslib");
|
|
4
7
|
var source_1 = require("./source");
|
|
5
|
-
exports
|
|
6
|
-
exports
|
|
7
|
-
exports
|
|
8
|
-
exports
|
|
9
|
-
exports
|
|
10
|
-
exports
|
|
11
|
-
exports
|
|
8
|
+
Object.defineProperty(exports, "getHtml", { enumerable: true, get: function () { return source_1.getHtml; } });
|
|
9
|
+
Object.defineProperty(exports, "setHtml", { enumerable: true, get: function () { return source_1.setHtml; } });
|
|
10
|
+
Object.defineProperty(exports, "parseContent", { enumerable: true, get: function () { return source_1.parseContent; } });
|
|
11
|
+
Object.defineProperty(exports, "trimWhitespace", { enumerable: true, get: function () { return source_1.trimWhitespace; } });
|
|
12
|
+
Object.defineProperty(exports, "htmlToFragment", { enumerable: true, get: function () { return source_1.htmlToFragment; } });
|
|
13
|
+
Object.defineProperty(exports, "domToPmDoc", { enumerable: true, get: function () { return source_1.domToPmDoc; } });
|
|
14
|
+
Object.defineProperty(exports, "pmDocToFragment", { enumerable: true, get: function () { return source_1.pmDocToFragment; } });
|
|
12
15
|
var inline_style_1 = require("./inline-style");
|
|
13
|
-
exports
|
|
14
|
-
exports
|
|
15
|
-
exports
|
|
16
|
+
Object.defineProperty(exports, "applyInlineStyle", { enumerable: true, get: function () { return inline_style_1.applyInlineStyle; } });
|
|
17
|
+
Object.defineProperty(exports, "getInlineStyles", { enumerable: true, get: function () { return inline_style_1.getInlineStyles; } });
|
|
18
|
+
Object.defineProperty(exports, "toggleInlineFormat", { enumerable: true, get: function () { return inline_style_1.toggleInlineFormat; } });
|
|
16
19
|
var link_1 = require("./link");
|
|
17
|
-
exports
|
|
18
|
-
exports
|
|
20
|
+
Object.defineProperty(exports, "applyLink", { enumerable: true, get: function () { return link_1.applyLink; } });
|
|
21
|
+
Object.defineProperty(exports, "removeLink", { enumerable: true, get: function () { return link_1.removeLink; } });
|
|
19
22
|
var text_1 = require("./text");
|
|
20
|
-
exports
|
|
23
|
+
Object.defineProperty(exports, "insertText", { enumerable: true, get: function () { return text_1.insertText; } });
|
|
21
24
|
var image_1 = require("./image");
|
|
22
|
-
exports
|
|
25
|
+
Object.defineProperty(exports, "insertImage", { enumerable: true, get: function () { return image_1.insertImage; } });
|
|
23
26
|
var align_1 = require("./align");
|
|
24
|
-
exports
|
|
25
|
-
exports
|
|
27
|
+
Object.defineProperty(exports, "alignBlocks", { enumerable: true, get: function () { return align_1.alignBlocks; } });
|
|
28
|
+
Object.defineProperty(exports, "isAligned", { enumerable: true, get: function () { return align_1.isAligned; } });
|
|
26
29
|
var cleanFormatting_1 = require("./cleanFormatting");
|
|
27
|
-
exports
|
|
30
|
+
Object.defineProperty(exports, "cleanFormatting", { enumerable: true, get: function () { return cleanFormatting_1.cleanFormatting; } });
|
|
28
31
|
var blockNode_1 = require("./blockNode");
|
|
29
|
-
exports
|
|
30
|
-
exports
|
|
31
|
-
exports
|
|
32
|
-
exports
|
|
33
|
-
exports
|
|
34
|
-
exports
|
|
35
|
-
exports
|
|
36
|
-
exports
|
|
32
|
+
Object.defineProperty(exports, "hasNode", { enumerable: true, get: function () { return blockNode_1.hasNode; } });
|
|
33
|
+
Object.defineProperty(exports, "activeNode", { enumerable: true, get: function () { return blockNode_1.activeNode; } });
|
|
34
|
+
Object.defineProperty(exports, "formatBlockElements", { enumerable: true, get: function () { return blockNode_1.formatBlockElements; } });
|
|
35
|
+
Object.defineProperty(exports, "getBlockFormats", { enumerable: true, get: function () { return blockNode_1.getBlockFormats; } });
|
|
36
|
+
Object.defineProperty(exports, "parentBlockFormat", { enumerable: true, get: function () { return blockNode_1.parentBlockFormat; } });
|
|
37
|
+
Object.defineProperty(exports, "changeTextBlock", { enumerable: true, get: function () { return blockNode_1.changeTextBlock; } });
|
|
38
|
+
Object.defineProperty(exports, "blockNodes", { enumerable: true, get: function () { return blockNode_1.blockNodes; } });
|
|
39
|
+
Object.defineProperty(exports, "cleanTextBlockFormatting", { enumerable: true, get: function () { return blockNode_1.cleanTextBlockFormatting; } });
|
|
37
40
|
var mark_1 = require("./mark");
|
|
38
|
-
exports
|
|
39
|
-
exports
|
|
40
|
-
exports
|
|
41
|
-
exports
|
|
42
|
-
exports
|
|
43
|
-
exports
|
|
41
|
+
Object.defineProperty(exports, "hasMark", { enumerable: true, get: function () { return mark_1.hasMark; } });
|
|
42
|
+
Object.defineProperty(exports, "getMark", { enumerable: true, get: function () { return mark_1.getMark; } });
|
|
43
|
+
Object.defineProperty(exports, "getActiveMarks", { enumerable: true, get: function () { return mark_1.getActiveMarks; } });
|
|
44
|
+
Object.defineProperty(exports, "removeAllMarks", { enumerable: true, get: function () { return mark_1.removeAllMarks; } });
|
|
45
|
+
Object.defineProperty(exports, "cleanMarks", { enumerable: true, get: function () { return mark_1.cleanMarks; } });
|
|
46
|
+
Object.defineProperty(exports, "selectionMarks", { enumerable: true, get: function () { return mark_1.selectionMarks; } });
|
|
44
47
|
var indent_1 = require("./indent");
|
|
45
|
-
exports
|
|
46
|
-
exports
|
|
47
|
-
exports
|
|
48
|
-
exports
|
|
49
|
-
exports
|
|
50
|
-
exports
|
|
51
|
-
exports
|
|
48
|
+
Object.defineProperty(exports, "indent", { enumerable: true, get: function () { return indent_1.indent; } });
|
|
49
|
+
Object.defineProperty(exports, "canIndentAsListItem", { enumerable: true, get: function () { return indent_1.canIndentAsListItem; } });
|
|
50
|
+
Object.defineProperty(exports, "outdent", { enumerable: true, get: function () { return indent_1.outdent; } });
|
|
51
|
+
Object.defineProperty(exports, "canOutdentAsListItem", { enumerable: true, get: function () { return indent_1.canOutdentAsListItem; } });
|
|
52
|
+
Object.defineProperty(exports, "isIndented", { enumerable: true, get: function () { return indent_1.isIndented; } });
|
|
53
|
+
Object.defineProperty(exports, "canBeIndented", { enumerable: true, get: function () { return indent_1.canBeIndented; } });
|
|
54
|
+
Object.defineProperty(exports, "indentBlocks", { enumerable: true, get: function () { return indent_1.indentBlocks; } });
|
|
52
55
|
var lists_1 = require("./lists");
|
|
53
|
-
exports
|
|
54
|
-
exports
|
|
55
|
-
exports
|
|
56
|
-
exports
|
|
56
|
+
Object.defineProperty(exports, "toggleOrderedList", { enumerable: true, get: function () { return lists_1.toggleOrderedList; } });
|
|
57
|
+
Object.defineProperty(exports, "toggleUnorderedList", { enumerable: true, get: function () { return lists_1.toggleUnorderedList; } });
|
|
58
|
+
Object.defineProperty(exports, "toggleList", { enumerable: true, get: function () { return lists_1.toggleList; } });
|
|
59
|
+
Object.defineProperty(exports, "listStyle", { enumerable: true, get: function () { return lists_1.listStyle; } });
|
|
57
60
|
var blockquote_1 = require("./blockquote");
|
|
58
|
-
exports
|
|
59
|
-
exports
|
|
61
|
+
Object.defineProperty(exports, "blockquote", { enumerable: true, get: function () { return blockquote_1.blockquote; } });
|
|
62
|
+
Object.defineProperty(exports, "liftBlockquote", { enumerable: true, get: function () { return blockquote_1.liftBlockquote; } });
|
|
60
63
|
var utils_1 = require("./utils");
|
|
61
|
-
exports
|
|
62
|
-
exports
|
|
63
|
-
exports
|
|
64
|
-
exports
|
|
65
|
-
exports
|
|
66
|
-
exports
|
|
67
|
-
exports
|
|
68
|
-
exports
|
|
69
|
-
exports
|
|
64
|
+
Object.defineProperty(exports, "hasSameMarkup", { enumerable: true, get: function () { return utils_1.hasSameMarkup; } });
|
|
65
|
+
Object.defineProperty(exports, "getSelectionText", { enumerable: true, get: function () { return utils_1.getSelectionText; } });
|
|
66
|
+
Object.defineProperty(exports, "getNodeFromSelection", { enumerable: true, get: function () { return utils_1.getNodeFromSelection; } });
|
|
67
|
+
Object.defineProperty(exports, "selectedLineTextOnly", { enumerable: true, get: function () { return utils_1.selectedLineTextOnly; } });
|
|
68
|
+
Object.defineProperty(exports, "expandSelection", { enumerable: true, get: function () { return utils_1.expandSelection; } });
|
|
69
|
+
Object.defineProperty(exports, "expandToWordWrap", { enumerable: true, get: function () { return utils_1.expandToWordWrap; } });
|
|
70
|
+
Object.defineProperty(exports, "canInsert", { enumerable: true, get: function () { return utils_1.canInsert; } });
|
|
71
|
+
Object.defineProperty(exports, "insertNode", { enumerable: true, get: function () { return utils_1.insertNode; } });
|
|
72
|
+
Object.defineProperty(exports, "indentHtml", { enumerable: true, get: function () { return utils_1.indentHtml; } });
|
|
70
73
|
var align_rules_1 = require("./config/align-rules");
|
|
71
|
-
exports
|
|
72
|
-
exports
|
|
73
|
-
exports
|
|
74
|
-
exports
|
|
75
|
-
exports
|
|
74
|
+
Object.defineProperty(exports, "alignLeftRules", { enumerable: true, get: function () { return align_rules_1.alignLeftRules; } });
|
|
75
|
+
Object.defineProperty(exports, "alignCenterRules", { enumerable: true, get: function () { return align_rules_1.alignCenterRules; } });
|
|
76
|
+
Object.defineProperty(exports, "alignRightRules", { enumerable: true, get: function () { return align_rules_1.alignRightRules; } });
|
|
77
|
+
Object.defineProperty(exports, "alignJustifyRules", { enumerable: true, get: function () { return align_rules_1.alignJustifyRules; } });
|
|
78
|
+
Object.defineProperty(exports, "alignRemoveRules", { enumerable: true, get: function () { return align_rules_1.alignRemoveRules; } });
|
|
76
79
|
var indent_rules_1 = require("./config/indent-rules");
|
|
77
|
-
exports
|
|
78
|
-
exports
|
|
80
|
+
Object.defineProperty(exports, "indentRules", { enumerable: true, get: function () { return indent_rules_1.indentRules; } });
|
|
81
|
+
Object.defineProperty(exports, "outdentRules", { enumerable: true, get: function () { return indent_rules_1.outdentRules; } });
|
|
79
82
|
var schema_1 = require("./config/schema");
|
|
80
|
-
exports
|
|
81
|
-
exports
|
|
83
|
+
Object.defineProperty(exports, "nodes", { enumerable: true, get: function () { return schema_1.nodes; } });
|
|
84
|
+
Object.defineProperty(exports, "marks", { enumerable: true, get: function () { return schema_1.marks; } });
|
|
82
85
|
var keymap_1 = require("./config/keymap");
|
|
83
|
-
exports
|
|
84
|
-
exports
|
|
86
|
+
Object.defineProperty(exports, "buildKeymap", { enumerable: true, get: function () { return keymap_1.buildKeymap; } });
|
|
87
|
+
Object.defineProperty(exports, "buildListKeymap", { enumerable: true, get: function () { return keymap_1.buildListKeymap; } });
|
|
85
88
|
var commands_1 = require("./config/commands");
|
|
86
|
-
exports
|
|
87
|
-
exports
|
|
88
|
-
exports
|
|
89
|
-
exports
|
|
90
|
-
exports
|
|
91
|
-
exports
|
|
92
|
-
exports
|
|
89
|
+
Object.defineProperty(exports, "bold", { enumerable: true, get: function () { return commands_1.bold; } });
|
|
90
|
+
Object.defineProperty(exports, "italic", { enumerable: true, get: function () { return commands_1.italic; } });
|
|
91
|
+
Object.defineProperty(exports, "underline", { enumerable: true, get: function () { return commands_1.underline; } });
|
|
92
|
+
Object.defineProperty(exports, "strikethrough", { enumerable: true, get: function () { return commands_1.strikethrough; } });
|
|
93
|
+
Object.defineProperty(exports, "subscript", { enumerable: true, get: function () { return commands_1.subscript; } });
|
|
94
|
+
Object.defineProperty(exports, "superscript", { enumerable: true, get: function () { return commands_1.superscript; } });
|
|
95
|
+
Object.defineProperty(exports, "link", { enumerable: true, get: function () { return commands_1.link; } });
|
|
93
96
|
var paste_1 = require("./paste");
|
|
94
|
-
exports
|
|
95
|
-
exports
|
|
96
|
-
exports
|
|
97
|
-
exports
|
|
98
|
-
exports
|
|
99
|
-
exports
|
|
100
|
-
exports
|
|
101
|
-
exports
|
|
97
|
+
Object.defineProperty(exports, "sanitize", { enumerable: true, get: function () { return paste_1.sanitize; } });
|
|
98
|
+
Object.defineProperty(exports, "removeComments", { enumerable: true, get: function () { return paste_1.removeComments; } });
|
|
99
|
+
Object.defineProperty(exports, "removeTag", { enumerable: true, get: function () { return paste_1.removeTag; } });
|
|
100
|
+
Object.defineProperty(exports, "pasteCleanup", { enumerable: true, get: function () { return paste_1.pasteCleanup; } });
|
|
101
|
+
Object.defineProperty(exports, "sanitizeClassAttr", { enumerable: true, get: function () { return paste_1.sanitizeClassAttr; } });
|
|
102
|
+
Object.defineProperty(exports, "sanitizeStyleAttr", { enumerable: true, get: function () { return paste_1.sanitizeStyleAttr; } });
|
|
103
|
+
Object.defineProperty(exports, "removeAttribute", { enumerable: true, get: function () { return paste_1.removeAttribute; } });
|
|
104
|
+
Object.defineProperty(exports, "replaceImageSourcesFromRtf", { enumerable: true, get: function () { return paste_1.replaceImageSourcesFromRtf; } });
|
|
102
105
|
var listConvert_1 = require("./listConvert");
|
|
103
|
-
exports
|
|
106
|
+
Object.defineProperty(exports, "convertMsLists", { enumerable: true, get: function () { return listConvert_1.convertMsLists; } });
|
|
104
107
|
var find_replace_1 = require("./find-replace");
|
|
105
|
-
exports
|
|
106
|
-
exports
|
|
107
|
-
exports
|
|
108
|
-
exports
|
|
109
|
-
exports
|
|
108
|
+
Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_replace_1.find; } });
|
|
109
|
+
Object.defineProperty(exports, "findAt", { enumerable: true, get: function () { return find_replace_1.findAt; } });
|
|
110
|
+
Object.defineProperty(exports, "findAll", { enumerable: true, get: function () { return find_replace_1.findAll; } });
|
|
111
|
+
Object.defineProperty(exports, "replace", { enumerable: true, get: function () { return find_replace_1.replace; } });
|
|
112
|
+
Object.defineProperty(exports, "replaceAll", { enumerable: true, get: function () { return find_replace_1.replaceAll; } });
|
|
110
113
|
var placeholder_1 = require("./plugins/placeholder");
|
|
111
|
-
exports
|
|
114
|
+
Object.defineProperty(exports, "placeholder", { enumerable: true, get: function () { return placeholder_1.placeholder; } });
|
|
112
115
|
var spaces_fix_1 = require("./plugins/spaces-fix");
|
|
113
|
-
exports
|
|
116
|
+
Object.defineProperty(exports, "spacesFix", { enumerable: true, get: function () { return spaces_fix_1.spacesFix; } });
|
|
114
117
|
var highlight_1 = require("./plugins/highlight");
|
|
115
|
-
exports
|
|
116
|
-
exports
|
|
118
|
+
Object.defineProperty(exports, "textHighlight", { enumerable: true, get: function () { return highlight_1.textHighlight; } });
|
|
119
|
+
Object.defineProperty(exports, "textHighlightKey", { enumerable: true, get: function () { return highlight_1.textHighlightKey; } });
|
|
117
120
|
var image_resize_1 = require("./plugins/image-resize");
|
|
118
|
-
exports
|
|
119
|
-
exports
|
|
121
|
+
Object.defineProperty(exports, "imageResizing", { enumerable: true, get: function () { return image_resize_1.imageResizing; } });
|
|
122
|
+
Object.defineProperty(exports, "imageResizeKey", { enumerable: true, get: function () { return image_resize_1.imageResizeKey; } });
|
|
120
123
|
var caret_color_1 = require("./plugins/caret-color");
|
|
121
|
-
exports
|
|
122
|
-
exports
|
|
124
|
+
Object.defineProperty(exports, "caretColor", { enumerable: true, get: function () { return caret_color_1.caretColor; } });
|
|
125
|
+
Object.defineProperty(exports, "caretColorKey", { enumerable: true, get: function () { return caret_color_1.caretColorKey; } });
|
|
123
126
|
var table_resize_1 = require("./plugins/table-resize");
|
|
124
|
-
exports
|
|
125
|
-
exports
|
|
126
|
-
exports
|
|
127
|
-
exports
|
|
127
|
+
Object.defineProperty(exports, "tableResizing", { enumerable: true, get: function () { return table_resize_1.tableResizing; } });
|
|
128
|
+
Object.defineProperty(exports, "tableResizeKey", { enumerable: true, get: function () { return table_resize_1.tableResizeKey; } });
|
|
129
|
+
Object.defineProperty(exports, "tableColumnResizeKey", { enumerable: true, get: function () { return table_resize_1.tableColumnResizeKey; } });
|
|
130
|
+
Object.defineProperty(exports, "tableRowResizeKey", { enumerable: true, get: function () { return table_resize_1.tableRowResizeKey; } });
|
|
128
131
|
// ProseMirror re-exports
|
|
129
132
|
tslib_1.__exportStar(require("prosemirror-commands"), exports);
|
|
130
133
|
tslib_1.__exportStar(require("prosemirror-dropcursor"), exports);
|
|
@@ -136,52 +139,52 @@ tslib_1.__exportStar(require("prosemirror-model"), exports);
|
|
|
136
139
|
tslib_1.__exportStar(require("prosemirror-schema-list"), exports);
|
|
137
140
|
tslib_1.__exportStar(require("prosemirror-state"), exports);
|
|
138
141
|
// Fixes an error related to setting over the addRowAfter and addRowBefore exports from the PM tables module
|
|
139
|
-
var
|
|
140
|
-
exports
|
|
141
|
-
exports
|
|
142
|
-
exports
|
|
143
|
-
exports
|
|
144
|
-
exports
|
|
145
|
-
exports
|
|
146
|
-
exports
|
|
147
|
-
exports
|
|
148
|
-
exports
|
|
149
|
-
exports
|
|
150
|
-
exports
|
|
151
|
-
exports
|
|
152
|
-
exports
|
|
153
|
-
exports
|
|
154
|
-
exports
|
|
155
|
-
exports
|
|
156
|
-
exports
|
|
157
|
-
exports
|
|
158
|
-
exports
|
|
159
|
-
exports
|
|
160
|
-
exports
|
|
161
|
-
exports
|
|
162
|
-
exports
|
|
163
|
-
exports
|
|
164
|
-
exports
|
|
165
|
-
exports
|
|
166
|
-
exports
|
|
167
|
-
exports
|
|
168
|
-
exports
|
|
169
|
-
exports
|
|
170
|
-
exports
|
|
171
|
-
exports
|
|
172
|
-
exports
|
|
173
|
-
exports
|
|
174
|
-
exports
|
|
175
|
-
exports
|
|
176
|
-
exports
|
|
177
|
-
exports
|
|
178
|
-
exports
|
|
179
|
-
exports
|
|
142
|
+
var prosemirror_tables_ts_1 = require("prosemirror-tables-ts");
|
|
143
|
+
Object.defineProperty(exports, "TableMap", { enumerable: true, get: function () { return prosemirror_tables_ts_1.TableMap; } });
|
|
144
|
+
Object.defineProperty(exports, "tableEditing", { enumerable: true, get: function () { return prosemirror_tables_ts_1.tableEditing; } });
|
|
145
|
+
Object.defineProperty(exports, "tableEditingKey", { enumerable: true, get: function () { return prosemirror_tables_ts_1.tableEditingKey; } });
|
|
146
|
+
Object.defineProperty(exports, "tableNodeTypes", { enumerable: true, get: function () { return prosemirror_tables_ts_1.tableNodeTypes; } });
|
|
147
|
+
Object.defineProperty(exports, "tableNodes", { enumerable: true, get: function () { return prosemirror_tables_ts_1.tableNodes; } });
|
|
148
|
+
Object.defineProperty(exports, "fixTables", { enumerable: true, get: function () { return prosemirror_tables_ts_1.fixTables; } });
|
|
149
|
+
Object.defineProperty(exports, "fixTablesKey", { enumerable: true, get: function () { return prosemirror_tables_ts_1.fixTablesKey; } });
|
|
150
|
+
Object.defineProperty(exports, "isInTable", { enumerable: true, get: function () { return prosemirror_tables_ts_1.isInTable; } });
|
|
151
|
+
Object.defineProperty(exports, "deleteTable", { enumerable: true, get: function () { return prosemirror_tables_ts_1.deleteTable; } });
|
|
152
|
+
Object.defineProperty(exports, "inSameTable", { enumerable: true, get: function () { return prosemirror_tables_ts_1.inSameTable; } });
|
|
153
|
+
Object.defineProperty(exports, "CellSelection", { enumerable: true, get: function () { return prosemirror_tables_ts_1.CellSelection; } });
|
|
154
|
+
Object.defineProperty(exports, "selectedRect", { enumerable: true, get: function () { return prosemirror_tables_ts_1.selectedRect; } });
|
|
155
|
+
Object.defineProperty(exports, "selectionCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.selectionCell; } });
|
|
156
|
+
Object.defineProperty(exports, "setCellAttr", { enumerable: true, get: function () { return prosemirror_tables_ts_1.setCellAttr; } });
|
|
157
|
+
Object.defineProperty(exports, "goToNextCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.goToNextCell; } });
|
|
158
|
+
Object.defineProperty(exports, "toggleHeader", { enumerable: true, get: function () { return prosemirror_tables_ts_1.toggleHeader; } });
|
|
159
|
+
Object.defineProperty(exports, "toggleHeaderCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.toggleHeaderCell; } });
|
|
160
|
+
Object.defineProperty(exports, "toggleHeaderColumn", { enumerable: true, get: function () { return prosemirror_tables_ts_1.toggleHeaderColumn; } });
|
|
161
|
+
Object.defineProperty(exports, "toggleHeaderRow", { enumerable: true, get: function () { return prosemirror_tables_ts_1.toggleHeaderRow; } });
|
|
162
|
+
Object.defineProperty(exports, "splitCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.splitCell; } });
|
|
163
|
+
Object.defineProperty(exports, "splitCellWithType", { enumerable: true, get: function () { return prosemirror_tables_ts_1.splitCellWithType; } });
|
|
164
|
+
Object.defineProperty(exports, "mergeCells", { enumerable: true, get: function () { return prosemirror_tables_ts_1.mergeCells; } });
|
|
165
|
+
Object.defineProperty(exports, "deleteColumn", { enumerable: true, get: function () { return prosemirror_tables_ts_1.deleteColumn; } });
|
|
166
|
+
Object.defineProperty(exports, "deleteRow", { enumerable: true, get: function () { return prosemirror_tables_ts_1.deleteRow; } });
|
|
167
|
+
Object.defineProperty(exports, "rowIsHeader", { enumerable: true, get: function () { return prosemirror_tables_ts_1.rowIsHeader; } });
|
|
168
|
+
Object.defineProperty(exports, "addRow", { enumerable: true, get: function () { return prosemirror_tables_ts_1.addRow; } });
|
|
169
|
+
Object.defineProperty(exports, "addColSpan", { enumerable: true, get: function () { return prosemirror_tables_ts_1.addColSpan; } });
|
|
170
|
+
Object.defineProperty(exports, "addColumn", { enumerable: true, get: function () { return prosemirror_tables_ts_1.addColumn; } });
|
|
171
|
+
Object.defineProperty(exports, "addColumnAfter", { enumerable: true, get: function () { return prosemirror_tables_ts_1.addColumnAfter; } });
|
|
172
|
+
Object.defineProperty(exports, "addColumnBefore", { enumerable: true, get: function () { return prosemirror_tables_ts_1.addColumnBefore; } });
|
|
173
|
+
Object.defineProperty(exports, "colCount", { enumerable: true, get: function () { return prosemirror_tables_ts_1.colCount; } });
|
|
174
|
+
Object.defineProperty(exports, "columnIsHeader", { enumerable: true, get: function () { return prosemirror_tables_ts_1.columnIsHeader; } });
|
|
175
|
+
Object.defineProperty(exports, "columnResizing", { enumerable: true, get: function () { return prosemirror_tables_ts_1.columnResizing; } });
|
|
176
|
+
Object.defineProperty(exports, "columnResizingPluginKey", { enumerable: true, get: function () { return prosemirror_tables_ts_1.columnResizingPluginKey; } });
|
|
177
|
+
Object.defineProperty(exports, "updateColumnsOnResize", { enumerable: true, get: function () { return prosemirror_tables_ts_1.updateColumnsOnResize; } });
|
|
178
|
+
Object.defineProperty(exports, "cellAround", { enumerable: true, get: function () { return prosemirror_tables_ts_1.cellAround; } });
|
|
179
|
+
Object.defineProperty(exports, "findCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.findCell; } });
|
|
180
|
+
Object.defineProperty(exports, "removeColSpan", { enumerable: true, get: function () { return prosemirror_tables_ts_1.removeColSpan; } });
|
|
181
|
+
Object.defineProperty(exports, "moveCellForward", { enumerable: true, get: function () { return prosemirror_tables_ts_1.moveCellForward; } });
|
|
182
|
+
Object.defineProperty(exports, "nextCell", { enumerable: true, get: function () { return prosemirror_tables_ts_1.nextCell; } });
|
|
180
183
|
tslib_1.__exportStar(require("prosemirror-transform"), exports);
|
|
181
184
|
tslib_1.__exportStar(require("prosemirror-view"), exports);
|
|
182
185
|
var table_1 = require("./table");
|
|
183
|
-
exports
|
|
184
|
-
exports
|
|
185
|
-
exports
|
|
186
|
-
exports
|
|
187
|
-
exports
|
|
186
|
+
Object.defineProperty(exports, "createTable", { enumerable: true, get: function () { return table_1.createTable; } });
|
|
187
|
+
Object.defineProperty(exports, "addRowAfter", { enumerable: true, get: function () { return table_1.addRowAfter; } });
|
|
188
|
+
Object.defineProperty(exports, "addRowBefore", { enumerable: true, get: function () { return table_1.addRowBefore; } });
|
|
189
|
+
Object.defineProperty(exports, "pmAddRowAfter", { enumerable: true, get: function () { return table_1.pmAddRowAfter; } });
|
|
190
|
+
Object.defineProperty(exports, "pmAddRowBefore", { enumerable: true, get: function () { return table_1.pmAddRowBefore; } });
|
package/dist/npm/mark.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { InlineFormatOptions } from './config/commands';
|
|
|
4
4
|
import { Command } from './types/command';
|
|
5
5
|
import { ActiveMarks } from './types/active-marks';
|
|
6
6
|
export declare const markApplies: (doc: any, ranges: any, type: any) => boolean;
|
|
7
|
-
export declare const toggleMark: (markType: MarkType
|
|
7
|
+
export declare const toggleMark: (markType: MarkType, attrs: any, tr: Transaction) => (state: any, dispatch: any) => boolean;
|
|
8
8
|
export declare const removeMark: (tr: any, from: any, to: any, mark: any) => any;
|
|
9
9
|
export declare const removeMarks: (marks: any, state: any, dispatch: any, tr: any) => boolean;
|
|
10
10
|
export declare const removeAllMarks: ({ except }?: {
|
|
11
|
-
except?: MarkType
|
|
11
|
+
except?: MarkType | MarkType[];
|
|
12
12
|
}) => Command;
|
|
13
13
|
/**
|
|
14
14
|
* Removes the marks from the selection base on the passed parameter.
|
|
@@ -17,28 +17,28 @@ export declare const removeAllMarks: ({ except }?: {
|
|
|
17
17
|
* @example
|
|
18
18
|
* See `removeAllMarks` or `cleanFormatting` function.
|
|
19
19
|
*/
|
|
20
|
-
export declare const cleanMarks: (tr: Transaction
|
|
21
|
-
except?: MarkType
|
|
20
|
+
export declare const cleanMarks: (tr: Transaction, { except }: {
|
|
21
|
+
except?: MarkType[];
|
|
22
22
|
}) => void;
|
|
23
23
|
/**
|
|
24
24
|
* Checks if a mark exists in the selection.
|
|
25
25
|
* Used for checking the state of bold, italic, ... and unlink tools.
|
|
26
26
|
*/
|
|
27
|
-
export declare const hasMark: (state: EditorState
|
|
28
|
-
export declare const styleValue: (mark: Mark
|
|
27
|
+
export declare const hasMark: (state: EditorState, options: InlineFormatOptions) => boolean;
|
|
28
|
+
export declare const styleValue: (mark: Mark | undefined, style: {
|
|
29
29
|
name: string;
|
|
30
30
|
value: RegExp;
|
|
31
|
-
}) => string;
|
|
31
|
+
}) => string | null;
|
|
32
32
|
/**
|
|
33
33
|
* Returns the marks of a specific type for every inline node in the selection.
|
|
34
34
|
*/
|
|
35
|
-
export declare const selectionMarks: (state: EditorState
|
|
35
|
+
export declare const selectionMarks: (state: EditorState, markType: MarkType) => Array<Mark | undefined>;
|
|
36
36
|
/**
|
|
37
37
|
* Returns the specified mark which wraps the selection.
|
|
38
38
|
* Used by link tools.
|
|
39
39
|
*/
|
|
40
|
-
export declare const getMark: (state: EditorState
|
|
40
|
+
export declare const getMark: (state: EditorState, markType: MarkType) => Mark | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* **Deprecated.** Use `selectionMarks` function instead.
|
|
43
43
|
*/
|
|
44
|
-
export declare const getActiveMarks: (state: EditorState
|
|
44
|
+
export declare const getActiveMarks: (state: EditorState, markType: MarkType) => ActiveMarks;
|
package/dist/npm/mark.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getActiveMarks = exports.getMark = exports.selectionMarks = exports.styleValue = exports.hasMark = exports.cleanMarks = exports.removeAllMarks = exports.removeMarks = exports.removeMark = exports.toggleMark = exports.markApplies = void 0;
|
|
3
4
|
var prosemirror_transform_1 = require("prosemirror-transform");
|
|
4
5
|
var prosemirror_model_1 = require("prosemirror-model");
|
|
5
|
-
|
|
6
|
+
var markApplies = function (doc, ranges, type) {
|
|
6
7
|
var loop = function (i) {
|
|
7
8
|
var ref = ranges[i];
|
|
8
9
|
var $from = ref.$from;
|
|
@@ -26,7 +27,8 @@ exports.markApplies = function (doc, ranges, type) {
|
|
|
26
27
|
}
|
|
27
28
|
return false;
|
|
28
29
|
};
|
|
29
|
-
exports.
|
|
30
|
+
exports.markApplies = markApplies;
|
|
31
|
+
var toggleMark = function (markType, attrs, tr) { return function (state, dispatch) {
|
|
30
32
|
var _a = state.selection, empty = _a.empty, $cursor = _a.$cursor, ranges = _a.ranges;
|
|
31
33
|
if ((empty && !$cursor) || !exports.markApplies(state.doc, ranges, markType)) {
|
|
32
34
|
return false;
|
|
@@ -60,7 +62,8 @@ exports.toggleMark = function (markType, attrs, tr) { return function (state, di
|
|
|
60
62
|
}
|
|
61
63
|
return true;
|
|
62
64
|
}; };
|
|
63
|
-
exports.
|
|
65
|
+
exports.toggleMark = toggleMark;
|
|
66
|
+
var removeMark = function (tr, from, to, mark) {
|
|
64
67
|
if (mark === void 0) {
|
|
65
68
|
mark = null;
|
|
66
69
|
}
|
|
@@ -108,7 +111,8 @@ exports.removeMark = function (tr, from, to, mark) {
|
|
|
108
111
|
matched.forEach(function (m) { return tr.step(new prosemirror_transform_1.RemoveMarkStep(m.from, m.to, m.style)); });
|
|
109
112
|
return tr;
|
|
110
113
|
};
|
|
111
|
-
exports.
|
|
114
|
+
exports.removeMark = removeMark;
|
|
115
|
+
var removeMarks = function (marks, state, dispatch, tr) {
|
|
112
116
|
var _a = state.selection, $cursor = _a.$cursor, ranges = _a.ranges;
|
|
113
117
|
tr = tr || state.tr;
|
|
114
118
|
if ($cursor) {
|
|
@@ -120,7 +124,7 @@ exports.removeMarks = function (marks, state, dispatch, tr) {
|
|
|
120
124
|
}
|
|
121
125
|
else {
|
|
122
126
|
var _loop_1 = function (i) {
|
|
123
|
-
var
|
|
127
|
+
var _b = ranges[i], $from = _b.$from, $to = _b.$to;
|
|
124
128
|
marks.forEach(function (m) {
|
|
125
129
|
exports.removeMark(tr, $from.pos, $to.pos, m);
|
|
126
130
|
});
|
|
@@ -132,9 +136,10 @@ exports.removeMarks = function (marks, state, dispatch, tr) {
|
|
|
132
136
|
}
|
|
133
137
|
return true;
|
|
134
138
|
};
|
|
139
|
+
exports.removeMarks = removeMarks;
|
|
135
140
|
var toArray = function (x) { return x instanceof Array ? x : [x]; };
|
|
136
|
-
|
|
137
|
-
var _b =
|
|
141
|
+
var removeAllMarks = function (_a) {
|
|
142
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.except, except = _c === void 0 ? [] : _c;
|
|
138
143
|
return function (state, dispatch) {
|
|
139
144
|
var tr = state.tr;
|
|
140
145
|
exports.cleanMarks(tr, { except: toArray(except) });
|
|
@@ -143,6 +148,7 @@ exports.removeAllMarks = function (_a) {
|
|
|
143
148
|
}
|
|
144
149
|
};
|
|
145
150
|
};
|
|
151
|
+
exports.removeAllMarks = removeAllMarks;
|
|
146
152
|
/**
|
|
147
153
|
* Removes the marks from the selection base on the passed parameter.
|
|
148
154
|
* Requires to dispatch the transaction.
|
|
@@ -150,7 +156,7 @@ exports.removeAllMarks = function (_a) {
|
|
|
150
156
|
* @example
|
|
151
157
|
* See `removeAllMarks` or `cleanFormatting` function.
|
|
152
158
|
*/
|
|
153
|
-
|
|
159
|
+
var cleanMarks = function (tr, _a) {
|
|
154
160
|
var except = _a.except;
|
|
155
161
|
var doc = tr.doc, selection = tr.selection;
|
|
156
162
|
var schema = doc.type.schema;
|
|
@@ -166,11 +172,12 @@ exports.cleanMarks = function (tr, _a) {
|
|
|
166
172
|
});
|
|
167
173
|
}
|
|
168
174
|
};
|
|
175
|
+
exports.cleanMarks = cleanMarks;
|
|
169
176
|
/**
|
|
170
177
|
* Checks if a mark exists in the selection.
|
|
171
178
|
* Used for checking the state of bold, italic, ... and unlink tools.
|
|
172
179
|
*/
|
|
173
|
-
|
|
180
|
+
var hasMark = function (state, options) {
|
|
174
181
|
var marks = state.schema.marks;
|
|
175
182
|
var altMarks = (options.altMarks || []).filter(function (m) { return marks[m]; });
|
|
176
183
|
var altStyle = options.altStyle;
|
|
@@ -192,7 +199,8 @@ exports.hasMark = function (state, options) {
|
|
|
192
199
|
}
|
|
193
200
|
return Boolean(result);
|
|
194
201
|
};
|
|
195
|
-
exports.
|
|
202
|
+
exports.hasMark = hasMark;
|
|
203
|
+
var styleValue = function (mark, style) {
|
|
196
204
|
var styleText = (mark && mark.attrs.style) || '';
|
|
197
205
|
var styles = styleText.split(/\s*;\s*/).filter(function (s) { return Boolean(s); });
|
|
198
206
|
for (var i = 0; i < styles.length; i++) {
|
|
@@ -203,10 +211,11 @@ exports.styleValue = function (mark, style) {
|
|
|
203
211
|
}
|
|
204
212
|
return null;
|
|
205
213
|
};
|
|
214
|
+
exports.styleValue = styleValue;
|
|
206
215
|
/**
|
|
207
216
|
* Returns the marks of a specific type for every inline node in the selection.
|
|
208
217
|
*/
|
|
209
|
-
|
|
218
|
+
var selectionMarks = function (state, markType) {
|
|
210
219
|
var _a = state.selection, from = _a.from, $from = _a.$from, to = _a.to, empty = _a.empty;
|
|
211
220
|
var marks = [];
|
|
212
221
|
if (empty) {
|
|
@@ -221,19 +230,21 @@ exports.selectionMarks = function (state, markType) {
|
|
|
221
230
|
}
|
|
222
231
|
return marks;
|
|
223
232
|
};
|
|
233
|
+
exports.selectionMarks = selectionMarks;
|
|
224
234
|
/**
|
|
225
235
|
* Returns the specified mark which wraps the selection.
|
|
226
236
|
* Used by link tools.
|
|
227
237
|
*/
|
|
228
|
-
|
|
238
|
+
var getMark = function (state, markType) {
|
|
229
239
|
var marks = exports.selectionMarks(state, markType);
|
|
230
240
|
var filtered = marks.filter(function (m) { return Boolean(m); });
|
|
231
241
|
return marks.length === filtered.length ? marks[0] : undefined;
|
|
232
242
|
};
|
|
243
|
+
exports.getMark = getMark;
|
|
233
244
|
/**
|
|
234
245
|
* **Deprecated.** Use `selectionMarks` function instead.
|
|
235
246
|
*/
|
|
236
|
-
|
|
247
|
+
var getActiveMarks = function (state, markType) {
|
|
237
248
|
var marks = exports.selectionMarks(state, markType);
|
|
238
249
|
var filtered = marks.filter(function (m) { return Boolean(m); });
|
|
239
250
|
var hasNodesWithoutMarks = marks.length !== filtered.length;
|
|
@@ -242,3 +253,4 @@ exports.getActiveMarks = function (state, markType) {
|
|
|
242
253
|
marks: filtered
|
|
243
254
|
};
|
|
244
255
|
};
|
|
256
|
+
exports.getActiveMarks = getActiveMarks;
|