@novaprose/tinymce-compat 0.5.3 → 0.6.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 +10 -5
- package/dist/index.cjs +363 -258
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +360 -254
- package/dist/index.js.map +1 -1
- package/dist/novaprose.css +106 -0
- package/dist/tinymce.global.js +26 -23
- package/dist/tinymce.global.js.map +1 -1
- package/package.json +2 -2
package/dist/novaprose.css
CHANGED
|
@@ -912,6 +912,8 @@ html.nova-fullscreen-lock body {
|
|
|
912
912
|
border-radius: 0 0 var(--nova-radius) var(--nova-radius);
|
|
913
913
|
color: var(--nova-muted);
|
|
914
914
|
font-size: 12px;
|
|
915
|
+
/* Служебная строка: не выделяется при перетаскивании ручки размера. */
|
|
916
|
+
user-select: none;
|
|
915
917
|
}
|
|
916
918
|
|
|
917
919
|
.nova-path {
|
|
@@ -923,6 +925,45 @@ html.nova-fullscreen-lock body {
|
|
|
923
925
|
|
|
924
926
|
.nova-wordcount {
|
|
925
927
|
flex: none;
|
|
928
|
+
margin-left: auto;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
.nova-resize-handle {
|
|
932
|
+
display: grid;
|
|
933
|
+
flex: none;
|
|
934
|
+
place-items: center;
|
|
935
|
+
width: 20px;
|
|
936
|
+
height: 20px;
|
|
937
|
+
margin-right: -8px;
|
|
938
|
+
border-radius: 4px;
|
|
939
|
+
color: var(--nova-subtle);
|
|
940
|
+
cursor: ns-resize;
|
|
941
|
+
touch-action: none;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
.nova-editor[data-resize='both'] .nova-resize-handle {
|
|
945
|
+
cursor: nwse-resize;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.nova-resize-handle:hover {
|
|
949
|
+
color: var(--nova-fg);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
.nova-resize-handle:focus-visible {
|
|
953
|
+
outline: 2px solid var(--nova-accent);
|
|
954
|
+
outline-offset: 1px;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
/* ======================= отключённый редактор ======================= */
|
|
958
|
+
|
|
959
|
+
.nova-disabled .nova-content,
|
|
960
|
+
.nova-disabled .nova-header,
|
|
961
|
+
.nova-disabled .nova-statusbar {
|
|
962
|
+
opacity: 0.55;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
.nova-disabled .nova-prosemirror {
|
|
966
|
+
cursor: not-allowed;
|
|
926
967
|
}
|
|
927
968
|
|
|
928
969
|
/* ======================= оверлеи ======================= */
|
|
@@ -1016,6 +1057,15 @@ html.nova-fullscreen-lock body {
|
|
|
1016
1057
|
background: var(--nova-border);
|
|
1017
1058
|
}
|
|
1018
1059
|
|
|
1060
|
+
.nova-menu-heading {
|
|
1061
|
+
padding: 8px 10px 4px;
|
|
1062
|
+
color: var(--nova-muted);
|
|
1063
|
+
font-size: 11px;
|
|
1064
|
+
font-weight: 600;
|
|
1065
|
+
letter-spacing: 0.02em;
|
|
1066
|
+
text-transform: uppercase;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1019
1069
|
/* ---------- автокомплитер / слэш-команды ---------- */
|
|
1020
1070
|
|
|
1021
1071
|
.nova-ac {
|
|
@@ -1362,6 +1412,24 @@ html.nova-fullscreen-lock body {
|
|
|
1362
1412
|
font-size: 12px;
|
|
1363
1413
|
}
|
|
1364
1414
|
|
|
1415
|
+
.nova-input-group {
|
|
1416
|
+
display: flex;
|
|
1417
|
+
gap: 6px;
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
.nova-input-group .nova-input {
|
|
1421
|
+
flex: 1;
|
|
1422
|
+
min-width: 0;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
.nova-input-action {
|
|
1426
|
+
flex: none;
|
|
1427
|
+
width: 36px;
|
|
1428
|
+
height: 36px;
|
|
1429
|
+
padding: 0;
|
|
1430
|
+
justify-content: center;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1365
1433
|
.nova-input {
|
|
1366
1434
|
width: 100%;
|
|
1367
1435
|
height: 36px;
|
|
@@ -1538,6 +1606,17 @@ html.nova-fullscreen-lock body {
|
|
|
1538
1606
|
|
|
1539
1607
|
/* ======================= обязательные стили ProseMirror ======================= */
|
|
1540
1608
|
|
|
1609
|
+
/* Служебная картинка ProseMirror после нередактируемого элемента в конце абзаца (переменная,
|
|
1610
|
+
упоминание, картинка). Обязательный стиль ProseMirror: иначе общий сброс сайта вроде
|
|
1611
|
+
img { display: block } превращает её в лишнюю пустую строку. */
|
|
1612
|
+
.nova-prosemirror img.ProseMirror-separator {
|
|
1613
|
+
display: inline !important;
|
|
1614
|
+
width: auto !important;
|
|
1615
|
+
height: auto !important;
|
|
1616
|
+
margin: 0 !important;
|
|
1617
|
+
border: none !important;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1541
1620
|
.ProseMirror-hideselection *::selection {
|
|
1542
1621
|
background: transparent;
|
|
1543
1622
|
}
|
|
@@ -2305,3 +2384,30 @@ div.nova-diff-removed {
|
|
|
2305
2384
|
line-height: 1.5;
|
|
2306
2385
|
overflow-wrap: anywhere;
|
|
2307
2386
|
}
|
|
2387
|
+
|
|
2388
|
+
/* ======================= переменные (mergetags) ======================= */
|
|
2389
|
+
|
|
2390
|
+
.nova-mergetag {
|
|
2391
|
+
display: inline-block;
|
|
2392
|
+
padding: 0 6px;
|
|
2393
|
+
border-radius: 4px;
|
|
2394
|
+
background: var(--nova-active);
|
|
2395
|
+
color: var(--nova-active-fg);
|
|
2396
|
+
font-size: 0.9em;
|
|
2397
|
+
font-weight: 500;
|
|
2398
|
+
line-height: 1.5;
|
|
2399
|
+
white-space: nowrap;
|
|
2400
|
+
cursor: default;
|
|
2401
|
+
user-select: none;
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
.nova-mergetag.is-unknown {
|
|
2405
|
+
outline: 1px dashed var(--nova-active-fg);
|
|
2406
|
+
outline-offset: -1px;
|
|
2407
|
+
background: transparent;
|
|
2408
|
+
}
|
|
2409
|
+
|
|
2410
|
+
.nova-mergetag.is-selected {
|
|
2411
|
+
outline: 2px solid var(--nova-accent);
|
|
2412
|
+
outline-offset: 1px;
|
|
2413
|
+
}
|