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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fable-editor",
3
- "version": "1.2.7",
3
+ "version": "1.3.0",
4
4
  "description": "FableEditor — a rich text editor with React and Angular wrappers",
5
5
  "author": "Sajin Satheesan <an.sajinsatheesan@gmail.com>",
6
6
  "repository": {
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;