@bigbinary/neeto-editor 1.45.6 → 1.45.8-beta.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/dist/Editor.js CHANGED
@@ -5504,6 +5504,9 @@ var BulletList = BulletList$1.extend({
5504
5504
  addKeyboardShortcuts: function addKeyboardShortcuts() {
5505
5505
  var _this = this;
5506
5506
  return {
5507
+ "Mod-Shift-8": function ModShift8() {
5508
+ return _this.editor.commands.toggleBulletList();
5509
+ },
5507
5510
  Backspace: function Backspace() {
5508
5511
  return _this.editor.commands.command(function (_ref) {
5509
5512
  var state = _ref.state,
@@ -10575,11 +10578,18 @@ var ImageExtension = Node.create({
10575
10578
  props: {
10576
10579
  handleDOMEvents: {
10577
10580
  paste: function paste(view, event) {
10578
- var _event$clipboardData;
10581
+ var _event$clipboardData, _event$clipboardData2;
10579
10582
  var _view$state = view.state,
10580
10583
  schema = _view$state.schema,
10581
10584
  pos = _view$state.selection.$anchor.pos;
10582
- var hasFiles = (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 || (_event$clipboardData = _event$clipboardData.files) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.length;
10585
+
10586
+ // Microsoft Excel and a few other products might copy content as
10587
+ // both `text/plain` and `text/html`. If `text/plain` exists,
10588
+ // an early return will ensure that it fallbacks to tiptap's
10589
+ // default paste behavior.
10590
+ var text = event === null || event === void 0 || (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.getData("text/plain");
10591
+ if (text) return;
10592
+ var hasFiles = (_event$clipboardData2 = event.clipboardData) === null || _event$clipboardData2 === void 0 || (_event$clipboardData2 = _event$clipboardData2.files) === null || _event$clipboardData2 === void 0 ? void 0 : _event$clipboardData2.length;
10583
10593
  if (!hasFiles) return;
10584
10594
  var images = Array.from(event.clipboardData.files).filter(function (file) {
10585
10595
  return /image/i.test(file.type);