@ctzhian/tiptap 1.7.2 → 1.7.3

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.
@@ -95,7 +95,7 @@ var LinkViewWrapper = function LinkViewWrapper(_ref) {
95
95
  };
96
96
  var handleDeleteLink = function handleDeleteLink() {
97
97
  editor.commands.deleteNode(node.type);
98
- editor.commands.insertContent(attrs.title || attrs.href);
98
+ editor.chain().insertContent(attrs.title || attrs.href).focus().run();
99
99
  };
100
100
  var handleCopyLink = useCallback( /*#__PURE__*/function () {
101
101
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
@@ -57,7 +57,7 @@ export var InlineLinkExtension = Node.create({
57
57
  },
58
58
  addOptions: function addOptions() {
59
59
  return {
60
- autolink: true,
60
+ autolink: false,
61
61
  linkOnPaste: false,
62
62
  protocols: [],
63
63
  defaultProtocol: 'http',
package/dist/index.css CHANGED
@@ -455,17 +455,20 @@
455
455
 
456
456
  /* 表格滚动条样式 */
457
457
  .tiptap.ProseMirror .tableWrapper::-webkit-scrollbar {
458
- height: 2px;
458
+ height: 5px;
459
+ cursor: pointer;
459
460
  }
460
461
 
461
462
  .tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-track {
462
463
  background: var(--mui-palette-divider);
463
464
  border-radius: 4px;
465
+ cursor: pointer;
464
466
  }
465
467
 
466
468
  .tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-thumb {
467
469
  background: var(--mui-palette-text-disabled);
468
470
  border-radius: 4px;
471
+ cursor: pointer;
469
472
  }
470
473
 
471
474
  /* youtube */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctzhian/tiptap",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "基于 Tiptap 二次开发的编辑器组件",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",