@ctzhian/tiptap 2.10.1 → 2.10.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.
|
@@ -94,7 +94,13 @@ var ExcalidrawEditorWrapper = function ExcalidrawEditorWrapper(_ref) {
|
|
|
94
94
|
};
|
|
95
95
|
}();
|
|
96
96
|
return /*#__PURE__*/React.createElement(React.Suspense, {
|
|
97
|
-
fallback: /*#__PURE__*/React.createElement("div",
|
|
97
|
+
fallback: /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
style: {
|
|
99
|
+
textAlign: 'center',
|
|
100
|
+
padding: 16,
|
|
101
|
+
fontSize: 12
|
|
102
|
+
}
|
|
103
|
+
}, "\u52A0\u8F7D\u4E2D...")
|
|
98
104
|
}, /*#__PURE__*/React.createElement("div", {
|
|
99
105
|
style: {
|
|
100
106
|
width: '100%',
|
package/dist/index.css
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
@import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
position: relative;
|
|
5
|
-
}
|
|
1
|
+
@import 'highlight.js/styles/an-old-hope.css';
|
|
2
|
+
@import 'katex/dist/katex.min.css';
|
|
3
|
+
@import 'react-photo-view/dist/react-photo-view.css';
|
|
6
4
|
|
|
7
5
|
:root {
|
|
8
6
|
--common-row-font-size: 16px;
|
|
@@ -11,6 +9,237 @@ body {
|
|
|
11
9
|
|
|
12
10
|
--table-head-background-color: #f2f3f5;
|
|
13
11
|
--table-cell-border-color: #dee0e3;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
--mui-shape-borderRadius: 10px;
|
|
15
|
+
--mui-spacing-unit: 8px;
|
|
16
|
+
|
|
17
|
+
--mui-transitions-duration-short: 250ms;
|
|
18
|
+
--mui-transitions-duration-standard: 300ms;
|
|
19
|
+
--mui-transitions-easing-easeOut: cubic-bezier(0.0, 0, 0.2, 1);
|
|
20
|
+
--mui-transitions-easing-easeInOut: cubic-bezier(0.4, 0, 0.2, 1);
|
|
21
|
+
|
|
22
|
+
overflow-wrap: break-word;
|
|
23
|
+
text-size-adjust: none;
|
|
24
|
+
text-rendering: optimizeLegibility;
|
|
25
|
+
-webkit-font-smoothing: antialiased;
|
|
26
|
+
-moz-osx-font-smoothing: grayscale;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body {
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
* {
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tiptap.ProseMirror {
|
|
38
|
+
padding: 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.tiptap.ProseMirror a {
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tiptap.ProseMirror *:not(pre)>code {
|
|
46
|
+
background-color: var(--mui-palette-background-paper3);
|
|
47
|
+
border: 1px solid var(--mui-palette-divider);
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
font-size: 90%;
|
|
50
|
+
white-space: break-spaces;
|
|
51
|
+
word-break: break-word;
|
|
52
|
+
overflow-wrap: break-word;
|
|
53
|
+
padding: 0.125rem 0.25rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.tiptap.ProseMirror label:has(input[type="checkbox"]) {
|
|
57
|
+
line-height: 1;
|
|
58
|
+
padding-top: 0.5rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tiptap.ProseMirror input[type="checkbox"] {
|
|
62
|
+
appearance: none;
|
|
63
|
+
-webkit-appearance: none;
|
|
64
|
+
-moz-appearance: none;
|
|
65
|
+
width: 1rem;
|
|
66
|
+
height: 1rem;
|
|
67
|
+
border: 1px solid;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
background-color: var(--mui-palette-background-default);
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
position: relative;
|
|
72
|
+
transition: all var(--mui-transitions-duration-short) var(--mui-transitions-easing-easeOut);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.tiptap.ProseMirror input[type="checkbox"]:checked {
|
|
76
|
+
background-color: var(--mui-palette-background-paper);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tiptap.ProseMirror input[type="checkbox"]:checked::after {
|
|
80
|
+
content: "";
|
|
81
|
+
width: 70%;
|
|
82
|
+
height: 70%;
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 50%;
|
|
85
|
+
top: 50%;
|
|
86
|
+
transform: translate(-50%, -50%);
|
|
87
|
+
background-color: var(--mui-palette-primary-main);
|
|
88
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
89
|
+
mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.tiptap.ProseMirror input[type="checkbox"]:focus {
|
|
93
|
+
outline: none;
|
|
94
|
+
box-shadow: 0 0 0 2px var(--mui-palette-action-selected);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.tiptap.ProseMirror input[type="checkbox"]:disabled {
|
|
98
|
+
opacity: 0.5;
|
|
99
|
+
cursor: not-allowed;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.tiptap.ProseMirror input[type="checkbox"]:disabled:checked {
|
|
103
|
+
background-color: var(--mui-palette-text-disabled);
|
|
104
|
+
border-color: var(--mui-palette-text-disabled);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.tiptap.ProseMirror .react-renderer.node-flow {
|
|
108
|
+
line-height: normal;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.tiptap.ProseMirror .react-renderer.node-image,
|
|
112
|
+
.tiptap.ProseMirror .react-renderer.node-inlineLink,
|
|
113
|
+
.tiptap.ProseMirror .react-renderer.node-inlineAttachment,
|
|
114
|
+
.tiptap.ProseMirror .react-renderer.node-inlineMath {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
margin: 0 0.25rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.tiptap.ProseMirror .react-renderer.node-inlineMath,
|
|
120
|
+
.tiptap.ProseMirror .react-renderer.node-blockMath {
|
|
121
|
+
user-select: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.tiptap.ProseMirror div[data-content-type="table"],
|
|
125
|
+
.tiptap.ProseMirror .react-renderer.node-alert,
|
|
126
|
+
.tiptap.ProseMirror .react-renderer.node-iframe,
|
|
127
|
+
.tiptap.ProseMirror .react-renderer.node-codeBlock,
|
|
128
|
+
.tiptap.ProseMirror .react-renderer.node-blockLink,
|
|
129
|
+
.tiptap.ProseMirror .react-renderer.node-flipGrid,
|
|
130
|
+
.tiptap.ProseMirror .react-renderer.node-audio,
|
|
131
|
+
.tiptap.ProseMirror .react-renderer.node-video,
|
|
132
|
+
.tiptap.ProseMirror .react-renderer.node-flow,
|
|
133
|
+
.tiptap.ProseMirror .react-renderer.node-blockMath,
|
|
134
|
+
.tiptap.ProseMirror .react-renderer.node-blockAttachment {
|
|
135
|
+
display: block;
|
|
136
|
+
margin: 1rem 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.tiptap.ProseMirror p :first-child:is(.react-renderer.node-image),
|
|
140
|
+
.tiptap.ProseMirror p :first-child:is(.react-renderer.node-inlineMath) {
|
|
141
|
+
margin-left: 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.tiptap.ProseMirror .react-renderer.node-iframe,
|
|
145
|
+
.tiptap.ProseMirror .react-renderer.node-image,
|
|
146
|
+
.tiptap.ProseMirror .react-renderer.node-audio,
|
|
147
|
+
.tiptap.ProseMirror .react-renderer.node-video,
|
|
148
|
+
.tiptap.ProseMirror .react-renderer.node-blockAttachment,
|
|
149
|
+
.tiptap.ProseMirror .react-renderer.node-inlineAttachment,
|
|
150
|
+
.tiptap.ProseMirror .react-renderer.node-blockLink,
|
|
151
|
+
.tiptap.ProseMirror .react-renderer.node-inlineLink,
|
|
152
|
+
.tiptap.ProseMirror .react-renderer.node-excalidraw,
|
|
153
|
+
.tiptap.ProseMirror .react-renderer.node-blockMath,
|
|
154
|
+
.tiptap.ProseMirror .react-renderer.node-inlineMath {
|
|
155
|
+
box-sizing: border-box;
|
|
156
|
+
line-height: 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.tiptap.ProseMirror .image-wrapper img {
|
|
160
|
+
line-height: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tiptap.ProseMirror .image-wrapper {
|
|
164
|
+
display: inline-block;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.tiptap.ProseMirror .codeblock-wrapper.ProseMirror-selectednode>pre,
|
|
168
|
+
.tiptap.ProseMirror .audio-wrapper.ProseMirror-selectednode>div,
|
|
169
|
+
.tiptap.ProseMirror .video-wrapper.ProseMirror-selectednode>div,
|
|
170
|
+
.tiptap.ProseMirror .image-wrapper.ProseMirror-selectednode>span {
|
|
171
|
+
border-color: var(--mui-palette-primary-main);
|
|
172
|
+
background-color: color-mix(in srgb, var(--mui-palette-primary-main) 5%, transparent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.tiptap.ProseMirror .custom-placeholder-node {
|
|
176
|
+
position: relative;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tiptap p.is-editor-empty:first-child::before {
|
|
180
|
+
color: #adb5bd;
|
|
181
|
+
content: attr(data-placeholder);
|
|
182
|
+
float: left;
|
|
183
|
+
height: 0;
|
|
184
|
+
pointer-events: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
.tiptap.ProseMirror .custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
189
|
+
color: #adb5bd;
|
|
190
|
+
content: attr(data-placeholder);
|
|
191
|
+
float: left;
|
|
192
|
+
height: 0;
|
|
193
|
+
pointer-events: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.tiptap.ProseMirror .node-codeBlock.custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
197
|
+
position: absolute;
|
|
198
|
+
height: 1.5rem;
|
|
199
|
+
top: 32px;
|
|
200
|
+
left: 16px;
|
|
201
|
+
z-index: 1;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.tiptap.ProseMirror ul[data-type="taskList"].custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
205
|
+
position: absolute;
|
|
206
|
+
height: 1.5rem;
|
|
207
|
+
left: 32px;
|
|
208
|
+
z-index: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.tiptap.ProseMirror .custom-horizontal-rule {
|
|
212
|
+
margin: 20px 0;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.tiptap.ProseMirror .mark-link a:hover {
|
|
216
|
+
text-decoration: underline;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid:hover .node-flipGridColumn,
|
|
220
|
+
.tiptap.ProseMirror.ProseMirror-focused[contenteditable="true"] .node-flipGrid .node-flipGridColumn {
|
|
221
|
+
background-color: var(--mui-palette-background-paper3);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .node-flipGridColumn {
|
|
225
|
+
border-radius: var(--mui-shape-borderRadius);
|
|
226
|
+
padding: 4px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .hover-popover-child,
|
|
230
|
+
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .flip-grid-column-inner {
|
|
231
|
+
height: 100%;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.excalidraw-modal-container {
|
|
235
|
+
z-index: 1400 !important;
|
|
236
|
+
top: auto;
|
|
237
|
+
height: 100vh;
|
|
238
|
+
width: 100vw;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.excalidraw .scroll-back-to-content {
|
|
242
|
+
bottom: 60px;
|
|
14
243
|
}
|
|
15
244
|
|
|
16
245
|
.tiptap.ProseMirror {
|
package/package.json
CHANGED
package/dist/asset/css/index.css
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
@import 'highlight.js/styles/an-old-hope.css';
|
|
2
|
-
@import 'katex/dist/katex.min.css';
|
|
3
|
-
@import 'react-photo-view/dist/react-photo-view.css';
|
|
4
|
-
|
|
5
|
-
:root {
|
|
6
|
-
--mui-shape-borderRadius: 10px;
|
|
7
|
-
--mui-spacing-unit: 8px;
|
|
8
|
-
|
|
9
|
-
--mui-transitions-duration-short: 250ms;
|
|
10
|
-
--mui-transitions-duration-standard: 300ms;
|
|
11
|
-
--mui-transitions-easing-easeOut: cubic-bezier(0.0, 0, 0.2, 1);
|
|
12
|
-
--mui-transitions-easing-easeInOut: cubic-bezier(0.4, 0, 0.2, 1);
|
|
13
|
-
|
|
14
|
-
overflow-wrap: break-word;
|
|
15
|
-
text-size-adjust: none;
|
|
16
|
-
text-rendering: optimizeLegibility;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
* {
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.tiptap.ProseMirror {
|
|
26
|
-
padding: 0.25rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.tiptap.ProseMirror a {
|
|
30
|
-
text-decoration: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.tiptap.ProseMirror *:not(pre)>code {
|
|
34
|
-
background-color: var(--mui-palette-background-paper3);
|
|
35
|
-
border: 1px solid var(--mui-palette-divider);
|
|
36
|
-
border-radius: 4px;
|
|
37
|
-
font-size: 90%;
|
|
38
|
-
white-space: break-spaces;
|
|
39
|
-
word-break: break-word;
|
|
40
|
-
overflow-wrap: break-word;
|
|
41
|
-
padding: 0.125rem 0.25rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.tiptap.ProseMirror label:has(input[type="checkbox"]) {
|
|
45
|
-
line-height: 1;
|
|
46
|
-
padding-top: 0.5rem;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.tiptap.ProseMirror input[type="checkbox"] {
|
|
50
|
-
appearance: none;
|
|
51
|
-
-webkit-appearance: none;
|
|
52
|
-
-moz-appearance: none;
|
|
53
|
-
width: 1rem;
|
|
54
|
-
height: 1rem;
|
|
55
|
-
border: 1px solid;
|
|
56
|
-
border-radius: 4px;
|
|
57
|
-
background-color: var(--mui-palette-background-default);
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
position: relative;
|
|
60
|
-
transition: all var(--mui-transitions-duration-short) var(--mui-transitions-easing-easeOut);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.tiptap.ProseMirror input[type="checkbox"]:checked {
|
|
64
|
-
background-color: var(--mui-palette-background-paper);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.tiptap.ProseMirror input[type="checkbox"]:checked::after {
|
|
68
|
-
content: "";
|
|
69
|
-
width: 70%;
|
|
70
|
-
height: 70%;
|
|
71
|
-
position: absolute;
|
|
72
|
-
left: 50%;
|
|
73
|
-
top: 50%;
|
|
74
|
-
transform: translate(-50%, -50%);
|
|
75
|
-
background-color: var(--mui-palette-primary-main);
|
|
76
|
-
-webkit-mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
77
|
-
mask: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21.4142%204.58579C22.1953%205.36683%2022.1953%206.63317%2021.4142%207.41421L10.4142%2018.4142C9.63317%2019.1953%208.36684%2019.1953%207.58579%2018.4142L2.58579%2013.4142C1.80474%2012.6332%201.80474%2011.3668%202.58579%2010.5858C3.36683%209.80474%204.63317%209.80474%205.41421%2010.5858L9%2014.1716L18.5858%204.58579C19.3668%203.80474%2020.6332%203.80474%2021.4142%204.58579Z%22%20fill%3D%22currentColor%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.tiptap.ProseMirror input[type="checkbox"]:focus {
|
|
81
|
-
outline: none;
|
|
82
|
-
box-shadow: 0 0 0 2px var(--mui-palette-action-selected);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.tiptap.ProseMirror input[type="checkbox"]:disabled {
|
|
86
|
-
opacity: 0.5;
|
|
87
|
-
cursor: not-allowed;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.tiptap.ProseMirror input[type="checkbox"]:disabled:checked {
|
|
91
|
-
background-color: var(--mui-palette-text-disabled);
|
|
92
|
-
border-color: var(--mui-palette-text-disabled);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.tiptap.ProseMirror .react-renderer.node-flow {
|
|
96
|
-
line-height: normal;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.tiptap.ProseMirror .react-renderer.node-image,
|
|
100
|
-
.tiptap.ProseMirror .react-renderer.node-inlineLink,
|
|
101
|
-
.tiptap.ProseMirror .react-renderer.node-inlineAttachment,
|
|
102
|
-
.tiptap.ProseMirror .react-renderer.node-inlineMath {
|
|
103
|
-
display: inline-block;
|
|
104
|
-
margin: 0 0.25rem;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.tiptap.ProseMirror .react-renderer.node-inlineMath,
|
|
108
|
-
.tiptap.ProseMirror .react-renderer.node-blockMath {
|
|
109
|
-
user-select: none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.tiptap.ProseMirror div[data-content-type="table"],
|
|
113
|
-
.tiptap.ProseMirror .react-renderer.node-alert,
|
|
114
|
-
.tiptap.ProseMirror .react-renderer.node-iframe,
|
|
115
|
-
.tiptap.ProseMirror .react-renderer.node-codeBlock,
|
|
116
|
-
.tiptap.ProseMirror .react-renderer.node-blockLink,
|
|
117
|
-
.tiptap.ProseMirror .react-renderer.node-flipGrid,
|
|
118
|
-
.tiptap.ProseMirror .react-renderer.node-audio,
|
|
119
|
-
.tiptap.ProseMirror .react-renderer.node-video,
|
|
120
|
-
.tiptap.ProseMirror .react-renderer.node-flow,
|
|
121
|
-
.tiptap.ProseMirror .react-renderer.node-blockMath,
|
|
122
|
-
.tiptap.ProseMirror .react-renderer.node-blockAttachment {
|
|
123
|
-
display: block;
|
|
124
|
-
margin: 1rem 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.tiptap.ProseMirror p :first-child:is(.react-renderer.node-image),
|
|
128
|
-
.tiptap.ProseMirror p :first-child:is(.react-renderer.node-inlineMath) {
|
|
129
|
-
margin-left: 0;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.tiptap.ProseMirror .react-renderer.node-iframe,
|
|
133
|
-
.tiptap.ProseMirror .react-renderer.node-image,
|
|
134
|
-
.tiptap.ProseMirror .react-renderer.node-audio,
|
|
135
|
-
.tiptap.ProseMirror .react-renderer.node-video,
|
|
136
|
-
.tiptap.ProseMirror .react-renderer.node-blockAttachment,
|
|
137
|
-
.tiptap.ProseMirror .react-renderer.node-inlineAttachment,
|
|
138
|
-
.tiptap.ProseMirror .react-renderer.node-blockLink,
|
|
139
|
-
.tiptap.ProseMirror .react-renderer.node-inlineLink,
|
|
140
|
-
.tiptap.ProseMirror .react-renderer.node-excalidraw,
|
|
141
|
-
.tiptap.ProseMirror .react-renderer.node-blockMath,
|
|
142
|
-
.tiptap.ProseMirror .react-renderer.node-inlineMath {
|
|
143
|
-
box-sizing: border-box;
|
|
144
|
-
line-height: 1;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.tiptap.ProseMirror .image-wrapper img {
|
|
148
|
-
line-height: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.tiptap.ProseMirror .image-wrapper {
|
|
152
|
-
display: inline-block;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.tiptap.ProseMirror .codeblock-wrapper.ProseMirror-selectednode>pre,
|
|
156
|
-
.tiptap.ProseMirror .audio-wrapper.ProseMirror-selectednode>div,
|
|
157
|
-
.tiptap.ProseMirror .video-wrapper.ProseMirror-selectednode>div,
|
|
158
|
-
.tiptap.ProseMirror .image-wrapper.ProseMirror-selectednode>span {
|
|
159
|
-
border-color: var(--mui-palette-primary-main);
|
|
160
|
-
background-color: color-mix(in srgb, var(--mui-palette-primary-main) 5%, transparent);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.tiptap.ProseMirror .custom-placeholder-node {
|
|
164
|
-
position: relative;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.tiptap p.is-editor-empty:first-child::before {
|
|
168
|
-
color: #adb5bd;
|
|
169
|
-
content: attr(data-placeholder);
|
|
170
|
-
float: left;
|
|
171
|
-
height: 0;
|
|
172
|
-
pointer-events: none;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
.tiptap.ProseMirror .custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
177
|
-
color: #adb5bd;
|
|
178
|
-
content: attr(data-placeholder);
|
|
179
|
-
float: left;
|
|
180
|
-
height: 0;
|
|
181
|
-
pointer-events: none;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.tiptap.ProseMirror .node-codeBlock.custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
185
|
-
position: absolute;
|
|
186
|
-
height: 1.5rem;
|
|
187
|
-
top: 32px;
|
|
188
|
-
left: 16px;
|
|
189
|
-
z-index: 1;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.tiptap.ProseMirror ul[data-type="taskList"].custom-placeholder-node:not(.is-editor-empty:first-child)::before {
|
|
193
|
-
position: absolute;
|
|
194
|
-
height: 1.5rem;
|
|
195
|
-
left: 32px;
|
|
196
|
-
z-index: 1;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.tiptap.ProseMirror .custom-horizontal-rule {
|
|
200
|
-
margin: 20px 0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.tiptap.ProseMirror .mark-link a:hover {
|
|
204
|
-
text-decoration: underline;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid:hover .node-flipGridColumn,
|
|
208
|
-
.tiptap.ProseMirror.ProseMirror-focused[contenteditable="true"] .node-flipGrid .node-flipGridColumn {
|
|
209
|
-
background-color: var(--mui-palette-background-paper3);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .node-flipGridColumn {
|
|
213
|
-
border-radius: var(--mui-shape-borderRadius);
|
|
214
|
-
padding: 4px;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .hover-popover-child,
|
|
218
|
-
.tiptap.ProseMirror[contenteditable="true"] .node-flipGrid .flip-grid-column-inner {
|
|
219
|
-
height: 100%;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.excalidraw-modal-container {
|
|
223
|
-
z-index: 1400 !important;
|
|
224
|
-
top: auto;
|
|
225
|
-
height: 100vh;
|
|
226
|
-
width: 100vw;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.excalidraw .scroll-back-to-content {
|
|
230
|
-
bottom: 60px;
|
|
231
|
-
}
|