@bigbinary/neeto-editor 1.47.48 → 1.47.49
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/Editor.js +0 -20
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +0 -20
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/package.json +1 -1
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -19872,26 +19872,6 @@ var TodoItemExtension = TaskItem.extend({
|
|
|
19872
19872
|
},
|
|
19873
19873
|
"Shift-Tab": function ShiftTab() {
|
|
19874
19874
|
return _this2.editor.commands.liftListItem(_this2.name);
|
|
19875
|
-
},
|
|
19876
|
-
Backspace: function Backspace() {
|
|
19877
|
-
var _this2$editor = _this2.editor,
|
|
19878
|
-
state = _this2$editor.state,
|
|
19879
|
-
commands = _this2$editor.commands;
|
|
19880
|
-
var _state$selection = state.selection,
|
|
19881
|
-
$from = _state$selection.$from,
|
|
19882
|
-
empty = _state$selection.empty;
|
|
19883
|
-
if (!empty) return false;
|
|
19884
|
-
if ($from.parentOffset === 0) {
|
|
19885
|
-
var currentNode = $from.parent;
|
|
19886
|
-
if (currentNode.content.size === 0) {
|
|
19887
|
-
return commands.lift(_this2.name);
|
|
19888
|
-
}
|
|
19889
|
-
var todoListNode = $from.node($from.depth - 1);
|
|
19890
|
-
if ((todoListNode === null || todoListNode === void 0 ? void 0 : todoListNode.type.name) === "todoList") {
|
|
19891
|
-
return commands.liftListItem(_this2.name);
|
|
19892
|
-
}
|
|
19893
|
-
}
|
|
19894
|
-
return false;
|
|
19895
19875
|
}
|
|
19896
19876
|
};
|
|
19897
19877
|
}
|