@formulaxjs/tiptap 0.3.0 → 0.4.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/README.md +212 -207
- package/README.zh-CN.md +71 -66
- package/dist/base.css +47 -0
- package/dist/canvg-runtime-UR3JNX5Q.js +2759 -0
- package/dist/canvg-runtime-UR3JNX5Q.js.map +1 -0
- package/dist/chunk-OCSSWPUX.js +3407 -0
- package/dist/chunk-OCSSWPUX.js.map +1 -0
- package/dist/images/scrollbar/custom/bar-bg.png +0 -0
- package/dist/images/scrollbar/custom/bar.png +0 -0
- package/dist/images/scrollbar/custom/bg.png +0 -0
- package/dist/images/scrollbar/custom/bottom.png +0 -0
- package/dist/images/scrollbar/custom/btn.png +0 -0
- package/dist/images/scrollbar/custom/down.png +0 -0
- package/dist/images/scrollbar/custom/top.png +0 -0
- package/dist/images/scrollbar/custom/up.png +0 -0
- package/dist/images/scrollbar/edit/bar-bg.png +0 -0
- package/dist/images/scrollbar/edit/bar-left.png +0 -0
- package/dist/images/scrollbar/edit/bar-right.png +0 -0
- package/dist/images/scrollbar/edit/thumb-bg.png +0 -0
- package/dist/images/scrollbar/edit/thumb-left.png +0 -0
- package/dist/images/scrollbar/edit/thumb-right.png +0 -0
- package/dist/images/toolbar/btn.png +0 -0
- package/dist/index.cjs +24075 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +2385 -2241
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3768 -21
- package/dist/index.js.map +1 -1
- package/dist/install-XGCSWTLU.js +5464 -0
- package/dist/install-XGCSWTLU.js.map +1 -0
- package/dist/install-XVTKACEN.js +1349 -0
- package/dist/install-XVTKACEN.js.map +1 -0
- package/dist/other.png +0 -0
- package/dist/scrollbar.css +78 -0
- package/dist/start-MBLTNR2Q.js +4926 -0
- package/dist/start-MBLTNR2Q.js.map +1 -0
- package/dist/ui.css +625 -0
- package/package.json +9 -4
- /package/dist/{KF_AMS_BB-5QF7FUSO.woff → KF_AMS_BB.woff} +0 -0
- /package/dist/{KF_AMS_CAL-NXRNLAZN.woff → KF_AMS_CAL.woff} +0 -0
- /package/dist/{KF_AMS_FRAK-CO33WWN4.woff → KF_AMS_FRAK.woff} +0 -0
- /package/dist/{KF_AMS_MAIN-25QJVAWY.woff → KF_AMS_MAIN.woff} +0 -0
- /package/dist/{KF_AMS_ROMAN-243BR7HH.woff → KF_AMS_ROMAN.woff} +0 -0
- /package/dist/{btn-5DANP6JY.png → btn.png} +0 -0
- /package/dist/{editor-JT5KLVXX.css → editor.css} +0 -0
- /package/dist/{other-OMWJFGL5.png → images/toolbar/other.png} +0 -0
package/dist/ui.css
ADDED
|
@@ -0,0 +1,625 @@
|
|
|
1
|
+
/* Toolbar */
|
|
2
|
+
.kf-editor-toolbar {
|
|
3
|
+
width: 100%;
|
|
4
|
+
flex: 0 0 auto;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding: 1px 10px;
|
|
7
|
+
position: relative;
|
|
8
|
+
top: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
z-index: 2;
|
|
11
|
+
background-color: #f6f5ee;
|
|
12
|
+
border-bottom: 1px solid #ccc;
|
|
13
|
+
-moz-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
|
|
14
|
+
-webkit-box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
|
|
15
|
+
box-shadow:1px 1px 1px rgba( 0, 0, 0, 0.1 );
|
|
16
|
+
color: #000;
|
|
17
|
+
font-family: Helvetica, Arial, "微软雅黑", "Microsoft YaHei", "宋体", sans-serif;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Button */
|
|
21
|
+
.kf-editor-inner-toolbar {
|
|
22
|
+
width: 100%;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.kf-editor-ui-button-mount-point,
|
|
27
|
+
.kf-editor-ui-area-mount,
|
|
28
|
+
.kf-editor-ui-box,
|
|
29
|
+
.kf-editor-ui-box-container,
|
|
30
|
+
.kf-editor-ui-box-group,
|
|
31
|
+
.kf-editor-ui-box-group-item-container,
|
|
32
|
+
.kf-editor-ui-overlap-container,
|
|
33
|
+
.kf-editor-ui-wrap-group,
|
|
34
|
+
.kf-editor-ui-list,
|
|
35
|
+
.kf-editor-ui-list-item-container {
|
|
36
|
+
white-space: normal;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.kf-editor-ui-button {
|
|
40
|
+
padding: 8px 6px;
|
|
41
|
+
height: 79px;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
border: 1px solid transparent;
|
|
45
|
+
border-radius: 3px;
|
|
46
|
+
cursor: default;
|
|
47
|
+
position: relative;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
z-index: 3;
|
|
51
|
+
vertical-align: top;
|
|
52
|
+
opacity: 0.5;
|
|
53
|
+
margin-right: 1px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.kf-editor-toolbar .kf-editor-ui-overlap-button {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 25px;
|
|
59
|
+
background: #53b856;
|
|
60
|
+
border-radius: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.kf-editor-ui-button-icon {
|
|
64
|
+
width: 32px;
|
|
65
|
+
height: 32px;
|
|
66
|
+
margin: 2px auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.kf-editor-ui-button-label {
|
|
70
|
+
color: #666;
|
|
71
|
+
text-align: center;
|
|
72
|
+
display: block;
|
|
73
|
+
font-size: 12px;
|
|
74
|
+
line-height: 20px;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.kf-editor-ui-overlap-button .kf-editor-ui-button-label {
|
|
79
|
+
padding: 3px 5px;
|
|
80
|
+
text-align: left;
|
|
81
|
+
color: white;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.kf-editor-ui-button-sign {
|
|
86
|
+
border: 4px solid transparent;
|
|
87
|
+
border-top-color: #2d2d2d;
|
|
88
|
+
width: 0;
|
|
89
|
+
height: 0;
|
|
90
|
+
display: inline-block;
|
|
91
|
+
margin: 8px auto;
|
|
92
|
+
vertical-align: top;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.kf-editor-ui-button-mount-point {
|
|
96
|
+
display: none;
|
|
97
|
+
position: absolute;
|
|
98
|
+
bottom: -2px;
|
|
99
|
+
left: -1px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 10000px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.kf-editor-ui-wrap-group {
|
|
108
|
+
overflow-x: hidden;
|
|
109
|
+
overflow-y: auto;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.kf-editor-ui-overlap-button .kf-editor-ui-button-mount-point {
|
|
113
|
+
top: 27px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.kf-editor-toolbar .kf-editor-ui-button-in {
|
|
117
|
+
border-color: #8fcc91!important;
|
|
118
|
+
background: #e0f0dd!important;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.kf-editor-toolbar .kf-editor-ui-overlap-button {
|
|
122
|
+
padding-top: 0;
|
|
123
|
+
padding-bottom: 0;
|
|
124
|
+
border-color: #61b864!important;
|
|
125
|
+
background: #61b864!important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Delimiter */
|
|
129
|
+
.kf-editor-ui-delimiter {
|
|
130
|
+
width: 11px;
|
|
131
|
+
height: 100%;
|
|
132
|
+
display: none;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.kf-editor-ui-enabled.kf-editor-ui-button:hover {
|
|
136
|
+
border: 1px solid #a9d9ab;
|
|
137
|
+
background: #ebf7e6;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.kf-editor-ui-enabled.kf-editor-ui-overlap-button:hover {
|
|
141
|
+
border: 1px solid #53b856;
|
|
142
|
+
background: #53b856;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.kf-editor-ui-delimiter-line {
|
|
146
|
+
width: 1px;
|
|
147
|
+
height: 100%;
|
|
148
|
+
margin: 0 auto;
|
|
149
|
+
background: -webkit-linear-gradient(top, rgba(233, 233, 233, 0.11), rgba(92, 92, 92, 0.20) 60%, rgba(92, 92, 92, 0.41) 80%, rgba(123, 123, 123, 0.50));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/* box */
|
|
153
|
+
.kf-editor-ui-box {
|
|
154
|
+
border: 1px solid #b3aead;
|
|
155
|
+
border-radius: 3px;
|
|
156
|
+
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
|
|
157
|
+
background: white;
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: 0;
|
|
160
|
+
left: -1px;
|
|
161
|
+
overflow-x: hidden;
|
|
162
|
+
overflow-y: auto;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.kf-editor-ui-area .kf-editor-ui-box {
|
|
166
|
+
border-color: #61b864;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.kf-editor-ui-box-container {
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.kf-editor-ui-box-group-title {
|
|
174
|
+
background-color: #f7f6f0;
|
|
175
|
+
min-height: 23px;
|
|
176
|
+
line-height: 1.35;
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
border: 1px solid #ebeae4;
|
|
179
|
+
border-width: 1px 0;
|
|
180
|
+
padding: 4px 12px;
|
|
181
|
+
white-space: normal;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.kf-editor-ui-box-group-item-container {
|
|
185
|
+
padding: 7px 9px 17px 9px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.kf-editor-ui-overlap-container {
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.kf-editor-ui-area .kf-editor-ui-box {
|
|
193
|
+
top: -1px;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.kf-editor-ui-overlap-container .kf-editor-ui-button-sign {
|
|
197
|
+
border-top-color: white;
|
|
198
|
+
border-width: 4px;
|
|
199
|
+
margin-left: 10px;
|
|
200
|
+
margin-top: 8px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.kf-editor-ui-yushe-btn .kf-editor-ui-box-item {
|
|
204
|
+
display: block;
|
|
205
|
+
border: 1px solid transparent;
|
|
206
|
+
padding: 5px;
|
|
207
|
+
margin: 0 0 12px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.kf-editor-ui-yushe-btn .kf-editor-ui-box-item:last-child {
|
|
211
|
+
margin-bottom: 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.kf-editor-ui-yushe-btn .kf-editor-ui-box-item-content {
|
|
215
|
+
display: block;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.kf-editor-ui-yushe-btn .kf-editor-ui-box-item-val {
|
|
219
|
+
display: block;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.kf-editor-ui-box-item {
|
|
223
|
+
display: inline-block;
|
|
224
|
+
margin: 4px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.kf-editor-ui-box-item-content:hover {
|
|
228
|
+
border-color: #dff3df;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.kf-editor-ui-box-item-content:hover .kf-editor-ui-box-item-val {
|
|
232
|
+
border-color: #6eb864;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.kf-editor-ui-area .kf-editor-ui-box-item {
|
|
236
|
+
position: relative;
|
|
237
|
+
top: 0;
|
|
238
|
+
left: 0;
|
|
239
|
+
width: 32px;
|
|
240
|
+
height: 32px;
|
|
241
|
+
border: 0;
|
|
242
|
+
margin: 3px;
|
|
243
|
+
padding: 0;
|
|
244
|
+
z-index: 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.kf-editor-ui-area .kf-editor-ui-box-item img {
|
|
248
|
+
width: 32px;
|
|
249
|
+
height: 32px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
.kf-editor-ui-box-item-label {
|
|
254
|
+
margin-bottom: 5px;
|
|
255
|
+
line-height: 1.35;
|
|
256
|
+
white-space: normal;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.kf-editor-ui-box-item-content {
|
|
260
|
+
background: white;
|
|
261
|
+
border: 1px solid white;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.kf-editor-ui-area .kf-editor-ui-box-item-content {
|
|
265
|
+
position: absolute;
|
|
266
|
+
top: 0;
|
|
267
|
+
left: 0;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.kf-editor-ui-area .kf-editor-ui-box-item-content:hover {
|
|
271
|
+
border: 1px solid #dff3df;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.kf-editor-ui-box-item-val {
|
|
275
|
+
padding: 5px;
|
|
276
|
+
line-height: 0;
|
|
277
|
+
border: 1px solid #808080;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.kf-editor-ui-area .kf-editor-ui-box-item-val {
|
|
281
|
+
padding: 0;
|
|
282
|
+
margin: 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* area */
|
|
286
|
+
.kf-editor-ui-area {
|
|
287
|
+
height: 79px;
|
|
288
|
+
display: inline-block;
|
|
289
|
+
cursor: default;
|
|
290
|
+
position: relative;
|
|
291
|
+
top: 0;
|
|
292
|
+
left: 0;
|
|
293
|
+
vertical-align: top;
|
|
294
|
+
opacity: 0.5;
|
|
295
|
+
z-index: 4;
|
|
296
|
+
border: 1px solid #e0dfd5;
|
|
297
|
+
border-radius: 4px;
|
|
298
|
+
background: white;
|
|
299
|
+
margin: 8px 10px;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.kf-editor-ui-area-container {
|
|
303
|
+
width: 293px;
|
|
304
|
+
height: 70px;
|
|
305
|
+
/*margin: 7px 5px 5px 5px;*/
|
|
306
|
+
margin: 5px;
|
|
307
|
+
display: inline-block;
|
|
308
|
+
border-right: 0;
|
|
309
|
+
vertical-align: top;
|
|
310
|
+
position: relative;
|
|
311
|
+
top: 0;
|
|
312
|
+
left: 0;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.kf-editor-ui-area-panel {
|
|
317
|
+
position: absolute;
|
|
318
|
+
top: 0;
|
|
319
|
+
left: 0;
|
|
320
|
+
line-height: 0;
|
|
321
|
+
background: white;
|
|
322
|
+
-webkit-transition: top 0.5s linear;
|
|
323
|
+
-moz-transition: top 0.5s linear;
|
|
324
|
+
transition: top 0.5s linear;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.kf-editor-ui-area-button-container {
|
|
328
|
+
display: inline-block;
|
|
329
|
+
width: 16px;
|
|
330
|
+
height: 100%;
|
|
331
|
+
overflow: hidden;
|
|
332
|
+
text-align: center;
|
|
333
|
+
border: 0 solid #D3D3D3;
|
|
334
|
+
border-left-width: 1px;
|
|
335
|
+
background-color: #f2f0e6;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.kf-editor-ui-moveup-button, .kf-editor-ui-movedown-button {
|
|
339
|
+
line-height: 25px;
|
|
340
|
+
height: 30px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.kf-editor-ui-moveup-button {
|
|
344
|
+
background: url( "./images/toolbar/btn.png" ) -304px 9px no-repeat;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.kf-editor-ui-movedown-button {
|
|
348
|
+
border: 1px solid #D3D3D3;
|
|
349
|
+
border-width: 1px 0;
|
|
350
|
+
background: url( "./images/toolbar/btn.png" ) -325px 9px no-repeat;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.kf-editor-ui-area-button {
|
|
354
|
+
width: 100%;
|
|
355
|
+
height: 50px;
|
|
356
|
+
line-height: 26px;
|
|
357
|
+
background: url( "./images/toolbar/btn.png" ) -346px 0 no-repeat;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.kf-editor-ui-enabled .kf-editor-ui-area-button:hover {
|
|
361
|
+
background-color: #e5e4e1;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.kf-editor-ui-enabled .kf-editor-ui-moveup-button:hover {
|
|
365
|
+
background-color: #e5e4e1;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.kf-editor-ui-enabled .kf-editor-ui-movedown-button:hover {
|
|
369
|
+
background-color: #e5e4e1;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.kf-editor-ui-area-button-container .kf-editor-ui-disabled {
|
|
373
|
+
opacity: 0.25;
|
|
374
|
+
background-color: transparent!important;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.kf-editor-ui-area-mount {
|
|
378
|
+
position: absolute;
|
|
379
|
+
top: 0;
|
|
380
|
+
left: 0;
|
|
381
|
+
display: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.kf-editor-ui-overlap-title {
|
|
385
|
+
width: 100%;
|
|
386
|
+
line-height: 1.5;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* list */
|
|
390
|
+
.kf-editor-ui-list {
|
|
391
|
+
background: #f9f8f5;
|
|
392
|
+
border: 1px solid #b3aead;
|
|
393
|
+
border-radius: 3px;
|
|
394
|
+
position: fixed;
|
|
395
|
+
top: 0;
|
|
396
|
+
left: 0;
|
|
397
|
+
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.11);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.kf-editor-ui-list-bg {
|
|
401
|
+
display: none;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.kf-editor-ui-list-item-container {
|
|
405
|
+
position: relative;
|
|
406
|
+
top: 0;
|
|
407
|
+
left: 0;
|
|
408
|
+
z-index: 2;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.kf-editor-ui-list-item {
|
|
412
|
+
line-height: 24px;
|
|
413
|
+
padding: 2px 6px;
|
|
414
|
+
border: 1px solid transparent;
|
|
415
|
+
border-width: 1px 0;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.kf-editor-ui-list-item-select {
|
|
419
|
+
color: #61b864;
|
|
420
|
+
font-weight: bold;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.kf-editor-ui-list-item-select .kf-editor-ui-list-item-icon {
|
|
424
|
+
visibility: visible;
|
|
425
|
+
width: 16px;
|
|
426
|
+
height: 16px;
|
|
427
|
+
background: url( ./images/toolbar/btn.png ) no-repeat -367px 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.kf-editor-ui-list-item:hover {
|
|
431
|
+
border-color: #beddbf;
|
|
432
|
+
background-color: #ecf3e9;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.kf-editor-ui-list-item-icon {
|
|
436
|
+
width: 16px;
|
|
437
|
+
height: 16px;
|
|
438
|
+
display: inline-block;
|
|
439
|
+
vertical-align: middle;
|
|
440
|
+
margin-top: -2px;
|
|
441
|
+
margin-right: 4px;
|
|
442
|
+
visibility: hidden;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* area content area */
|
|
446
|
+
.kf-editor-ui-area-item {
|
|
447
|
+
width: 26px;
|
|
448
|
+
height: 26px;
|
|
449
|
+
position: absolute;
|
|
450
|
+
top: 0;
|
|
451
|
+
left: 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.kf-editor-ui-area-item-inner {
|
|
455
|
+
width: 34px;
|
|
456
|
+
height: 34px;
|
|
457
|
+
border: 1px solid white;
|
|
458
|
+
position: absolute;
|
|
459
|
+
top: -4px;
|
|
460
|
+
left: -4px;
|
|
461
|
+
-webkit-transition: all 0.1s linear;
|
|
462
|
+
-moz-transition: all 0.1s linear;
|
|
463
|
+
transition: all 0.1s linear;
|
|
464
|
+
|
|
465
|
+
-webkit-transform: scale( 0.76 );
|
|
466
|
+
-moz-transform: scale( 0.76 );
|
|
467
|
+
transform: scale( 0.76 );
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover {
|
|
471
|
+
border-color: #dff3df;
|
|
472
|
+
|
|
473
|
+
-webkit-transform: scale( 1 );
|
|
474
|
+
-moz-transform: scale( 1 );
|
|
475
|
+
transform: scale( 1 );
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.kf-editor-ui-area-item-img {
|
|
479
|
+
width: 32px;
|
|
480
|
+
height: 32px;
|
|
481
|
+
border: 1px solid #808080;
|
|
482
|
+
-webkit-transition: all 0.1s linear;
|
|
483
|
+
-moz-transition: all 0.1s linear;
|
|
484
|
+
transition: all 0.1s linear;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-img {
|
|
488
|
+
border-color: #6eb864;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/* unicode text area items */
|
|
492
|
+
.kf-editor-ui-area-item-unicode .kf-editor-ui-area-item-inner {
|
|
493
|
+
display: flex;
|
|
494
|
+
align-items: center;
|
|
495
|
+
justify-content: center;
|
|
496
|
+
border-color: transparent;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.kf-editor-ui-area-item-text {
|
|
500
|
+
width: 32px;
|
|
501
|
+
height: 32px;
|
|
502
|
+
line-height: 32px;
|
|
503
|
+
font-size: 20px;
|
|
504
|
+
text-align: center;
|
|
505
|
+
color: #000;
|
|
506
|
+
border: 1px solid #808080;
|
|
507
|
+
font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
|
|
508
|
+
-webkit-transition: all 0.1s linear;
|
|
509
|
+
-moz-transition: all 0.1s linear;
|
|
510
|
+
transition: all 0.1s linear;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.kf-editor-ui-enabled .kf-editor-ui-area-item-inner:hover .kf-editor-ui-area-item-text {
|
|
514
|
+
border-color: #6eb864;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/* unicode box items (popup) */
|
|
518
|
+
.kf-editor-ui-box-item-text {
|
|
519
|
+
width: 32px;
|
|
520
|
+
height: 32px;
|
|
521
|
+
line-height: 32px;
|
|
522
|
+
font-size: 20px;
|
|
523
|
+
text-align: center;
|
|
524
|
+
color: #000;
|
|
525
|
+
border: 1px solid #808080;
|
|
526
|
+
font-family: "KF AMS MAIN", "Cambria Math", "Latin Modern Math", "Times New Roman", serif;
|
|
527
|
+
display: inline-block;
|
|
528
|
+
-webkit-transition: all 0.1s linear;
|
|
529
|
+
-moz-transition: all 0.1s linear;
|
|
530
|
+
transition: all 0.1s linear;
|
|
531
|
+
|
|
532
|
+
-webkit-transform: scale( 1 );
|
|
533
|
+
-moz-transform: scale( 1 );
|
|
534
|
+
transform: scale( 1 );
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.kf-editor-ui-box-item:hover .kf-editor-ui-box-item-text {
|
|
538
|
+
border-color: #6eb864;
|
|
539
|
+
|
|
540
|
+
-webkit-transform: scale( 1.2 );
|
|
541
|
+
-moz-transform: scale( 1.2 );
|
|
542
|
+
transform: scale( 1.2 );
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.kf-editor-ui-enabled {
|
|
546
|
+
opacity: 1;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.kf-editor-ui-overlap-container .kf-editor-ui-box-item {
|
|
550
|
+
width: 34px;
|
|
551
|
+
height: 34px;
|
|
552
|
+
border: 1px solid white;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.kf-editor-ui-overlap-container .kf-editor-ui-box-item-val {
|
|
556
|
+
width: 32px;
|
|
557
|
+
height: 32px;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* scrollbar */
|
|
561
|
+
.kf-editor-ui-box::-webkit-scrollbar {
|
|
562
|
+
width: 17px;
|
|
563
|
+
background: url(./images/scrollbar/custom/bg.png) 0 0 repeat-y white;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.kf-editor-ui-box::-webkit-scrollbar-button:end:increment {
|
|
567
|
+
height: 5px;
|
|
568
|
+
background: url(./images/scrollbar/custom/down.png) 0 0 repeat-y white;
|
|
569
|
+
}
|
|
570
|
+
/* Define styles for scrollbar decrement button */
|
|
571
|
+
.kf-editor-ui-box::-webkit-scrollbar-button:start:decrement {
|
|
572
|
+
height: 5px;
|
|
573
|
+
background: url(./images/scrollbar/custom/up.png) 0 0 repeat-y white;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
/* Upper segment of vertical scrollbar track piece */
|
|
577
|
+
.kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:start {
|
|
578
|
+
background-image: url(./images/scrollbar/custom/top.png), url(./images/scrollbar/custom/bg.png);
|
|
579
|
+
background-repeat: no-repeat, repeat-y;
|
|
580
|
+
}
|
|
581
|
+
/* Lower segment of vertical scrollbar track piece */
|
|
582
|
+
.kf-editor-ui-box::-webkit-scrollbar-track-piece:vertical:end {
|
|
583
|
+
background-image: url(./images/scrollbar/custom/bottom.png), url(./images/scrollbar/custom/bg.png);
|
|
584
|
+
background-repeat: no-repeat, repeat-y;
|
|
585
|
+
background-position: 0 bottom, 0 0;
|
|
586
|
+
}
|
|
587
|
+
/* Vertical scrollbar thumb */
|
|
588
|
+
.kf-editor-ui-box::-webkit-scrollbar-thumb:vertical {
|
|
589
|
+
/*background: url(./images2/bar.png) 6px 0 no-repeat;*/
|
|
590
|
+
/*background-size: 6px;*/
|
|
591
|
+
-webkit-border-image: url(./images/scrollbar/custom/bar.png) 8;
|
|
592
|
+
border-width: 10px;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar {
|
|
596
|
+
width: 17px;
|
|
597
|
+
background: url(./images/scrollbar/custom/bg.png) 0 0 repeat-y white;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar-button:end:increment {
|
|
601
|
+
height: 5px;
|
|
602
|
+
background: url(./images/scrollbar/custom/down.png) 0 0 repeat-y white;
|
|
603
|
+
}
|
|
604
|
+
/* Define styles for scrollbar decrement button */
|
|
605
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar-button:start:decrement {
|
|
606
|
+
height: 5px;
|
|
607
|
+
background: url(./images/scrollbar/custom/up.png) 0 0 repeat-y white;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/* Upper segment of vertical scrollbar track piece */
|
|
611
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:start {
|
|
612
|
+
background-image: url(./images/scrollbar/custom/top.png), url(./images/scrollbar/custom/bg.png);
|
|
613
|
+
background-repeat: no-repeat, repeat-y;
|
|
614
|
+
}
|
|
615
|
+
/* Lower segment of vertical scrollbar track piece */
|
|
616
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar-track-piece:vertical:end {
|
|
617
|
+
background-image: url(./images/scrollbar/custom/bottom.png), url(./images/scrollbar/custom/bg.png);
|
|
618
|
+
background-repeat: no-repeat, repeat-y;
|
|
619
|
+
background-position: 0 bottom, 0 0;
|
|
620
|
+
}
|
|
621
|
+
/* Vertical scrollbar thumb */
|
|
622
|
+
.kf-editor-ui-wrap-group::-webkit-scrollbar-thumb:vertical {
|
|
623
|
+
-webkit-border-image: url(./images/scrollbar/custom/bar.png) 8;
|
|
624
|
+
border-width: 10px;
|
|
625
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formulaxjs/tiptap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "TipTap integration adapter for FormulaX.",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vndmea/formulaX.git",
|
|
11
|
+
"directory": "packages/tiptap"
|
|
12
|
+
},
|
|
8
13
|
"keywords": [
|
|
9
14
|
"formulax",
|
|
10
15
|
"formula",
|
|
@@ -31,8 +36,8 @@
|
|
|
31
36
|
},
|
|
32
37
|
"dependencies": {
|
|
33
38
|
"@formulaxjs/core": "0.1.0",
|
|
34
|
-
"@formulaxjs/editor": "0.
|
|
35
|
-
"@formulaxjs/renderer-kity": "0.
|
|
39
|
+
"@formulaxjs/editor": "0.4.0",
|
|
40
|
+
"@formulaxjs/renderer-kity": "0.3.0",
|
|
36
41
|
"@formulaxjs/renderer": "0.2.0"
|
|
37
42
|
},
|
|
38
43
|
"peerDependencies": {
|
|
@@ -47,7 +52,7 @@
|
|
|
47
52
|
"@tiptap/core": "^2.27.2"
|
|
48
53
|
},
|
|
49
54
|
"scripts": {
|
|
50
|
-
"build": "tsup --config ../../tsup.config.mjs",
|
|
55
|
+
"build": "tsup --config ../../tsup.config.mjs && node ./scripts/postbuild.mjs",
|
|
51
56
|
"clean": "Remove-Item -Recurse -Force dist -ErrorAction SilentlyContinue",
|
|
52
57
|
"test": "vitest run packages/tiptap/test",
|
|
53
58
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|