@ctzhian/tiptap 0.5.2 → 0.5.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.
- package/dist/Editor/demo.js +2 -2
- package/dist/index.css +12 -9
- package/package.json +1 -1
package/dist/Editor/demo.js
CHANGED
|
@@ -9,7 +9,7 @@ import { AiGenerate2Icon } from "../component/Icons";
|
|
|
9
9
|
import "../index.css";
|
|
10
10
|
var Reader = function Reader() {
|
|
11
11
|
var _useTiptap = useTiptap({
|
|
12
|
-
editable:
|
|
12
|
+
editable: true,
|
|
13
13
|
exclude: ['invisibleCharacters'],
|
|
14
14
|
onSave: function onSave(editor) {
|
|
15
15
|
console.log(editor.getHTML());
|
|
@@ -81,7 +81,7 @@ var Reader = function Reader() {
|
|
|
81
81
|
}
|
|
82
82
|
return onUpload;
|
|
83
83
|
}(),
|
|
84
|
-
content: "<p>demo.tsx:12</p><
|
|
84
|
+
content: "<p>demo.tsx:12</p><pre data-title=\"\u6570\u91CF\u98DE\u673A\"><code>export { default as darkPalette } from './dark';\nexport { default as lightPalette } from './light';</code></pre><p></p>"
|
|
85
85
|
}),
|
|
86
86
|
editor = _useTiptap.editor;
|
|
87
87
|
return /*#__PURE__*/React.createElement(EditorThemeProvider, {
|
package/dist/index.css
CHANGED
|
@@ -159,12 +159,14 @@
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
/* code */
|
|
162
|
+
.tiptap.ProseMirror .codeblock-wrapper {
|
|
163
|
+
margin-bottom: 16px;
|
|
164
|
+
}
|
|
165
|
+
|
|
162
166
|
.tiptap.ProseMirror pre {
|
|
163
167
|
position: relative;
|
|
164
|
-
border-radius: var(--mui-shape-borderRadius);
|
|
165
168
|
color: var(--mui-palette-common-white);
|
|
166
169
|
background-color: #171c19;
|
|
167
|
-
margin-bottom: 16px;
|
|
168
170
|
}
|
|
169
171
|
|
|
170
172
|
.tiptap.ProseMirror code {
|
|
@@ -360,6 +362,11 @@
|
|
|
360
362
|
transition: all 0.2s ease-in-out;
|
|
361
363
|
}
|
|
362
364
|
|
|
365
|
+
.tiptap.ProseMirror table tbody tr:first-child th,
|
|
366
|
+
.tiptap.ProseMirror table tbody tr:first-child td {
|
|
367
|
+
border-top: 1px solid var(--mui-palette-divider);
|
|
368
|
+
}
|
|
369
|
+
|
|
363
370
|
.tiptap.ProseMirror table td>*,
|
|
364
371
|
.tiptap.ProseMirror table th>* {
|
|
365
372
|
margin-bottom: 0;
|
|
@@ -464,21 +471,17 @@
|
|
|
464
471
|
|
|
465
472
|
/* 表格滚动条样式 */
|
|
466
473
|
.tiptap.ProseMirror .tableWrapper::-webkit-scrollbar {
|
|
467
|
-
height:
|
|
474
|
+
height: 2px;
|
|
468
475
|
}
|
|
469
476
|
|
|
470
477
|
.tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-track {
|
|
471
|
-
background: var(--mui-palette-background-paper2);
|
|
472
|
-
border-radius: 4px;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-thumb {
|
|
476
478
|
background: var(--mui-palette-divider);
|
|
477
479
|
border-radius: 4px;
|
|
478
480
|
}
|
|
479
481
|
|
|
480
|
-
.tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-thumb
|
|
482
|
+
.tiptap.ProseMirror .tableWrapper::-webkit-scrollbar-thumb {
|
|
481
483
|
background: var(--mui-palette-text-disabled);
|
|
484
|
+
border-radius: 4px;
|
|
482
485
|
}
|
|
483
486
|
|
|
484
487
|
/* youtube */
|