fable-editor 1.2.7 → 1.3.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/dist/angular/core/editor.d.ts +51 -1
- package/dist/angular/core/word-image-paste.d.ts +27 -0
- package/dist/angular/esm2022/core/editor.mjs +266 -20
- package/dist/angular/esm2022/core/word-image-paste.mjs +189 -0
- package/dist/angular/fesm2022/fable-editor.mjs +453 -19
- package/dist/angular/fesm2022/fable-editor.mjs.map +1 -1
- package/dist/core/editor.css +28 -1
- package/dist/core/editor.d.ts +51 -1
- package/dist/core/editor.d.ts.map +1 -1
- package/dist/core/index.cjs +4 -4
- package/dist/core/index.mjs +1008 -765
- package/dist/core/word-image-paste.d.ts +28 -0
- package/dist/core/word-image-paste.d.ts.map +1 -0
- package/dist/react/index.cjs +11 -11
- package/dist/react/index.mjs +1146 -903
- package/package.json +1 -1
- package/style.css +28 -1
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -194,6 +194,14 @@
|
|
|
194
194
|
stroke-linejoin: round;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
/* undo/redo swap sides under dir=rtl (normal flex reordering of the
|
|
198
|
+
toolbar), but their glyphs stay fixed - without this, both arrows end
|
|
199
|
+
up pointing at each other instead of outward from their new position */
|
|
200
|
+
[dir=rtl] .tbtn[data-id=undo] svg,
|
|
201
|
+
[dir=rtl] .tbtn[data-id=redo] svg {
|
|
202
|
+
transform: scaleX(-1);
|
|
203
|
+
}
|
|
204
|
+
|
|
197
205
|
.tbtn svg .f {
|
|
198
206
|
fill: #2f3744;
|
|
199
207
|
stroke: none;
|
|
@@ -350,6 +358,20 @@
|
|
|
350
358
|
height: auto;
|
|
351
359
|
}
|
|
352
360
|
|
|
361
|
+
/* the preview dialog mounts on document.body, outside .earea, so it needs
|
|
362
|
+
the same clamping or an image previews at its raw pixel size */
|
|
363
|
+
.dlg .pv-box img, .dlg .pv-box video {
|
|
364
|
+
max-width: 100%;
|
|
365
|
+
height: auto;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* preview is sized to the editor's own content column so what it shows is
|
|
369
|
+
the size that will actually be sent; that needs more room than the
|
|
370
|
+
standard dialog cap allows */
|
|
371
|
+
.dlg.dlg-preview {
|
|
372
|
+
max-width: 96vw;
|
|
373
|
+
}
|
|
374
|
+
|
|
353
375
|
/* image / video upload placeholder */
|
|
354
376
|
.earea .img-ph {
|
|
355
377
|
display: flex;
|
|
@@ -1711,8 +1733,13 @@
|
|
|
1711
1733
|
color: #556;
|
|
1712
1734
|
}
|
|
1713
1735
|
|
|
1714
|
-
kbd
|
|
1736
|
+
/* scoped (not a bare kbd selector) and with its own explicit color -
|
|
1737
|
+
a host page's own kbd styling can otherwise out-specificity a bare
|
|
1738
|
+
tag selector and override just one of background/color, leaving
|
|
1739
|
+
light-on-light text */
|
|
1740
|
+
.dlg kbd {
|
|
1715
1741
|
background: #f3f4f6;
|
|
1742
|
+
color: #444c58;
|
|
1716
1743
|
border-radius: 4px;
|
|
1717
1744
|
padding: 2px 7px;
|
|
1718
1745
|
font: 12px Consolas, monospace;
|