@opentiny/fluent-editor 3.19.1 → 3.20.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 +5 -3
- package/es/attributors/font-size.es.js +9 -0
- package/es/attributors/font-size.es.js.map +1 -0
- package/es/attributors/font-style.es.js +9 -0
- package/es/attributors/font-style.es.js.map +1 -0
- package/es/attributors/index.es.js +11 -0
- package/es/attributors/index.es.js.map +1 -0
- package/es/attributors/line-height.es.js +9 -0
- package/es/attributors/line-height.es.js.map +1 -0
- package/es/attributors/text-indent.es.js +9 -0
- package/es/attributors/text-indent.es.js.map +1 -0
- package/es/config/icons.config.es.js +4 -4
- package/es/config/icons.config.es.js.map +1 -1
- package/es/config.es.js +0 -35
- package/es/config.es.js.map +1 -1
- package/es/fluent-editor.es.js +18 -16
- package/es/fluent-editor.es.js.map +1 -1
- package/es/screenshot/index.es.js +140 -138
- package/es/screenshot/index.es.js.map +1 -1
- package/es/table/table-config.es.js +1 -1
- package/es/table/table-config.es.js.map +1 -1
- package/lib/attributors/font-size.cjs.js +9 -0
- package/lib/attributors/font-size.cjs.js.map +1 -0
- package/lib/attributors/font-style.cjs.js +9 -0
- package/lib/attributors/font-style.cjs.js.map +1 -0
- package/lib/attributors/index.cjs.js +11 -0
- package/lib/attributors/index.cjs.js.map +1 -0
- package/lib/attributors/line-height.cjs.js +9 -0
- package/lib/attributors/line-height.cjs.js.map +1 -0
- package/lib/attributors/text-indent.cjs.js +9 -0
- package/lib/attributors/text-indent.cjs.js.map +1 -0
- package/lib/config/icons.config.cjs.js +4 -4
- package/lib/config/icons.config.cjs.js.map +1 -1
- package/lib/config.cjs.js +0 -35
- package/lib/config.cjs.js.map +1 -1
- package/lib/fluent-editor.cjs.js +32 -30
- package/lib/fluent-editor.cjs.js.map +1 -1
- package/lib/screenshot/index.cjs.js +141 -139
- package/lib/screenshot/index.cjs.js.map +1 -1
- package/lib/table/table-config.cjs.js +1 -1
- package/lib/table/table-config.cjs.js.map +1 -1
- package/package.json +2 -2
- package/theme/style.css +88 -14
- package/es/lineheight.es.js +0 -11
- package/es/lineheight.es.js.map +0 -1
- package/lib/lineheight.cjs.js +0 -11
- package/lib/lineheight.cjs.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/fluent-editor",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.",
|
|
5
5
|
"homepage": "https://opentiny.github.io/fluent-editor/",
|
|
6
6
|
"keywords": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"commander": "^6.2.0",
|
|
49
49
|
"glob": "^11.0.0",
|
|
50
50
|
"highlight.js": "^10.2.0",
|
|
51
|
-
"html2canvas": "^1.
|
|
51
|
+
"html2canvas": "^1.4.1",
|
|
52
52
|
"jest": "^26.6.3",
|
|
53
53
|
"prettier": "^2.3.0",
|
|
54
54
|
"sass": "^1.47.0",
|
package/theme/style.css
CHANGED
|
@@ -3440,6 +3440,80 @@ li.unchecked > .ql-ui {
|
|
|
3440
3440
|
:fullscreen {
|
|
3441
3441
|
background-color: white !important;
|
|
3442
3442
|
}
|
|
3443
|
+
.ql-screenshot-wrapper {
|
|
3444
|
+
--ql-screenshot-color-bg: rgba(0, 0, 0, 0.5);
|
|
3445
|
+
--ql-screenshot-color-confirm: #2196F3;
|
|
3446
|
+
--ql-screenshot-color-cancel: #ef1749;
|
|
3447
|
+
}
|
|
3448
|
+
.ql-screenshot-wrapper .ql-screenshot-cancel,
|
|
3449
|
+
.ql-screenshot-wrapper .ql-screenshot-confirm {
|
|
3450
|
+
position: relative;
|
|
3451
|
+
height: 16px;
|
|
3452
|
+
width: 16px;
|
|
3453
|
+
cursor: pointer;
|
|
3454
|
+
}
|
|
3455
|
+
.ql-screenshot-wrapper .ql-screenshot-confirm {
|
|
3456
|
+
background-color: var(--ql-screenshot-color-confirm);
|
|
3457
|
+
}
|
|
3458
|
+
.ql-screenshot-wrapper .ql-screenshot-confirm::after {
|
|
3459
|
+
content: "";
|
|
3460
|
+
position: absolute;
|
|
3461
|
+
left: 6px;
|
|
3462
|
+
top: 3px;
|
|
3463
|
+
width: 5px;
|
|
3464
|
+
height: 10px;
|
|
3465
|
+
border: solid #fff;
|
|
3466
|
+
border-width: 0 3px 3px 0;
|
|
3467
|
+
transform: rotate(45deg);
|
|
3468
|
+
}
|
|
3469
|
+
.ql-screenshot-wrapper .ql-screenshot-cancel {
|
|
3470
|
+
background-color: var(--ql-screenshot-color-cancel);
|
|
3471
|
+
}
|
|
3472
|
+
.ql-screenshot-wrapper .ql-screenshot-cancel::after {
|
|
3473
|
+
content: "";
|
|
3474
|
+
position: absolute;
|
|
3475
|
+
left: 7px;
|
|
3476
|
+
top: 2px;
|
|
3477
|
+
width: 2px;
|
|
3478
|
+
height: 12px;
|
|
3479
|
+
border: solid #fff;
|
|
3480
|
+
border-width: 0 3px 3px 0;
|
|
3481
|
+
transform: rotate(45deg);
|
|
3482
|
+
}
|
|
3483
|
+
.ql-screenshot-wrapper .ql-screenshot-cancel::before {
|
|
3484
|
+
content: "";
|
|
3485
|
+
position: absolute;
|
|
3486
|
+
left: 7px;
|
|
3487
|
+
top: 2px;
|
|
3488
|
+
width: 2px;
|
|
3489
|
+
height: 12px;
|
|
3490
|
+
border: solid #fff;
|
|
3491
|
+
border-width: 0 3px 3px 0;
|
|
3492
|
+
transform: rotate(-45deg);
|
|
3493
|
+
}
|
|
3494
|
+
.ql-screenshot-mask {
|
|
3495
|
+
position: fixed;
|
|
3496
|
+
inset: 0;
|
|
3497
|
+
background-color: var(--ql-screenshot-color-bg);
|
|
3498
|
+
z-index: 50;
|
|
3499
|
+
}
|
|
3500
|
+
.ql-screenshot-cutter {
|
|
3501
|
+
position: fixed;
|
|
3502
|
+
border: 1px solid #fff;
|
|
3503
|
+
z-index: 50;
|
|
3504
|
+
}
|
|
3505
|
+
.ql-screenshot-coordinate, .ql-screenshot-done {
|
|
3506
|
+
position: absolute;
|
|
3507
|
+
bottom: 0;
|
|
3508
|
+
right: 0;
|
|
3509
|
+
font-size: 14px;
|
|
3510
|
+
white-space: nowrap;
|
|
3511
|
+
}
|
|
3512
|
+
.ql-screenshot-done {
|
|
3513
|
+
display: flex;
|
|
3514
|
+
border-top: 1px solid #333;
|
|
3515
|
+
border-left: 1px solid #333;
|
|
3516
|
+
}
|
|
3443
3517
|
.ql-counter {
|
|
3444
3518
|
width: 100%;
|
|
3445
3519
|
bottom: 0;
|
|
@@ -3666,22 +3740,22 @@ li.unchecked > .ql-ui {
|
|
|
3666
3740
|
.ql-toolbar.toolbar-bottom {
|
|
3667
3741
|
border-top: 0;
|
|
3668
3742
|
}
|
|
3669
|
-
.ql-toolbar .ql-active,
|
|
3670
|
-
.ql-toolbar .ql-picker-label.ql-active,
|
|
3671
|
-
.ql-toolbar .ql-picker-label:hover,
|
|
3672
|
-
.ql-toolbar .ql-picker-item.ql-selected,
|
|
3673
|
-
.ql-toolbar .ql-picker-item:hover,
|
|
3674
|
-
.ql-toolbar button.ql-active,
|
|
3675
|
-
.ql-toolbar button:hover {
|
|
3743
|
+
.ql-toolbar.ql-snow .ql-active,
|
|
3744
|
+
.ql-toolbar.ql-snow .ql-picker-label.ql-active,
|
|
3745
|
+
.ql-toolbar.ql-snow .ql-picker-label:hover,
|
|
3746
|
+
.ql-toolbar.ql-snow .ql-picker-item.ql-selected,
|
|
3747
|
+
.ql-toolbar.ql-snow .ql-picker-item:hover,
|
|
3748
|
+
.ql-toolbar.ql-snow button.ql-active,
|
|
3749
|
+
.ql-toolbar.ql-snow button:hover {
|
|
3676
3750
|
color: #5e7ce0;
|
|
3677
3751
|
}
|
|
3678
|
-
.ql-toolbar .ql-active .icon-triangle-down,
|
|
3679
|
-
.ql-toolbar .ql-picker-label.ql-active .icon-triangle-down,
|
|
3680
|
-
.ql-toolbar .ql-picker-label:hover .icon-triangle-down,
|
|
3681
|
-
.ql-toolbar .ql-picker-item.ql-selected .icon-triangle-down,
|
|
3682
|
-
.ql-toolbar .ql-picker-item:hover .icon-triangle-down,
|
|
3683
|
-
.ql-toolbar button.ql-active .icon-triangle-down,
|
|
3684
|
-
.ql-toolbar button:hover .icon-triangle-down {
|
|
3752
|
+
.ql-toolbar.ql-snow .ql-active .icon-triangle-down,
|
|
3753
|
+
.ql-toolbar.ql-snow .ql-picker-label.ql-active .icon-triangle-down,
|
|
3754
|
+
.ql-toolbar.ql-snow .ql-picker-label:hover .icon-triangle-down,
|
|
3755
|
+
.ql-toolbar.ql-snow .ql-picker-item.ql-selected .icon-triangle-down,
|
|
3756
|
+
.ql-toolbar.ql-snow .ql-picker-item:hover .icon-triangle-down,
|
|
3757
|
+
.ql-toolbar.ql-snow button.ql-active .icon-triangle-down,
|
|
3758
|
+
.ql-toolbar.ql-snow button:hover .icon-triangle-down {
|
|
3685
3759
|
border-top-color: #5e7ce0;
|
|
3686
3760
|
}
|
|
3687
3761
|
.ql-toolbar .ql-picker-item:focus,
|
package/es/lineheight.es.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Quill from "quill";
|
|
2
|
-
const Parchment = Quill.import("parchment");
|
|
3
|
-
const LineHeightStyle = new Parchment.StyleAttributor("lineheight", "line-height", {
|
|
4
|
-
scope: Parchment.Scope.INLINE,
|
|
5
|
-
whitelist: ["2", "2.5", "3", "4", "5"]
|
|
6
|
-
// 行距值的白名单
|
|
7
|
-
});
|
|
8
|
-
export {
|
|
9
|
-
LineHeightStyle as default
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=lineheight.es.js.map
|
package/es/lineheight.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lineheight.es.js","sources":["../../src/lineheight.ts"],"sourcesContent":["import Quill from 'quill'\r\n\r\nconst Parchment = Quill.import('parchment')\r\n\r\nconst LineHeightStyle = new Parchment.StyleAttributor('lineheight', 'line-height', {\r\n scope: Parchment.Scope.INLINE,\r\n whitelist: ['2', '2.5', '3', '4', '5'], // 行距值的白名单\r\n})\r\n\r\nexport default LineHeightStyle\r\n"],"names":[],"mappings":";AAEA,MAAM,YAAY,MAAM,OAAO,WAAW;AAE1C,MAAM,kBAAkB,IAAI,UAAU,gBAAgB,cAAc,eAAe;AAAA,EACjF,OAAO,UAAU,MAAM;AAAA,EACvB,WAAW,CAAC,KAAK,OAAO,KAAK,KAAK,GAAG;AAAA;AACvC,CAAC;"}
|
package/lib/lineheight.cjs.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Quill = require("quill");
|
|
4
|
-
const Parchment = Quill.import("parchment");
|
|
5
|
-
const LineHeightStyle = new Parchment.StyleAttributor("lineheight", "line-height", {
|
|
6
|
-
scope: Parchment.Scope.INLINE,
|
|
7
|
-
whitelist: ["2", "2.5", "3", "4", "5"]
|
|
8
|
-
// 行距值的白名单
|
|
9
|
-
});
|
|
10
|
-
exports.default = LineHeightStyle;
|
|
11
|
-
//# sourceMappingURL=lineheight.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lineheight.cjs.js","sources":["../../src/lineheight.ts"],"sourcesContent":["import Quill from 'quill'\r\n\r\nconst Parchment = Quill.import('parchment')\r\n\r\nconst LineHeightStyle = new Parchment.StyleAttributor('lineheight', 'line-height', {\r\n scope: Parchment.Scope.INLINE,\r\n whitelist: ['2', '2.5', '3', '4', '5'], // 行距值的白名单\r\n})\r\n\r\nexport default LineHeightStyle\r\n"],"names":[],"mappings":";;;AAEA,MAAM,YAAY,MAAM,OAAO,WAAW;AAE1C,MAAM,kBAAkB,IAAI,UAAU,gBAAgB,cAAc,eAAe;AAAA,EACjF,OAAO,UAAU,MAAM;AAAA,EACvB,WAAW,CAAC,KAAK,OAAO,KAAK,KAAK,GAAG;AAAA;AACvC,CAAC;;"}
|