@vaadin/rich-text-editor 23.3.20 → 23.3.22
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 +10 -10
- package/src/vaadin-rich-text-editor.js +2 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/rich-text-editor",
|
|
3
|
-
"version": "23.3.
|
|
3
|
+
"version": "23.3.22",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@polymer/polymer": "^3.0.0",
|
|
43
|
-
"@vaadin/button": "~23.3.
|
|
44
|
-
"@vaadin/component-base": "~23.3.
|
|
45
|
-
"@vaadin/confirm-dialog": "~23.3.
|
|
46
|
-
"@vaadin/text-field": "~23.3.
|
|
47
|
-
"@vaadin/tooltip": "~23.3.
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "~23.3.
|
|
49
|
-
"@vaadin/vaadin-material-styles": "~23.3.
|
|
50
|
-
"@vaadin/vaadin-themable-mixin": "~23.3.
|
|
43
|
+
"@vaadin/button": "~23.3.22",
|
|
44
|
+
"@vaadin/component-base": "~23.3.22",
|
|
45
|
+
"@vaadin/confirm-dialog": "~23.3.22",
|
|
46
|
+
"@vaadin/text-field": "~23.3.22",
|
|
47
|
+
"@vaadin/tooltip": "~23.3.22",
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "~23.3.22",
|
|
49
|
+
"@vaadin/vaadin-material-styles": "~23.3.22",
|
|
50
|
+
"@vaadin/vaadin-themable-mixin": "~23.3.22"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@esm-bundle/chai": "^4.3.4",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"web-types.json",
|
|
63
63
|
"web-types.lit.json"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "88ff9ce571e2cb894223e9a8f275c1bd8fd51e3e"
|
|
66
66
|
}
|
|
@@ -907,6 +907,8 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
907
907
|
|
|
908
908
|
// Remove Quill classes, e.g. ql-syntax, except for align
|
|
909
909
|
content = content.replace(/\s*ql-(?!align)[\w-]*\s*/g, '');
|
|
910
|
+
// Remove meta spans, e.g. cursor which are empty after Quill classes removed
|
|
911
|
+
content = content.replace(/<\/?span[^>]*>/gu, '');
|
|
910
912
|
|
|
911
913
|
// Replace Quill align classes with inline styles
|
|
912
914
|
[this.__dir === 'rtl' ? 'left' : 'right', 'center', 'justify'].forEach((align) => {
|
package/web-types.json
CHANGED