@vaadin/rich-text-editor 24.4.0-alpha8 → 24.4.0-alpha9
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 +11 -11
- package/src/vaadin-rich-text-editor-mixin.js +6 -1
- 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": "24.4.0-
|
|
3
|
+
"version": "24.4.0-alpha9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
43
43
|
"@polymer/polymer": "^3.0.0",
|
|
44
|
-
"@vaadin/button": "24.4.0-
|
|
45
|
-
"@vaadin/component-base": "24.4.0-
|
|
46
|
-
"@vaadin/confirm-dialog": "24.4.0-
|
|
47
|
-
"@vaadin/text-field": "24.4.0-
|
|
48
|
-
"@vaadin/tooltip": "24.4.0-
|
|
49
|
-
"@vaadin/vaadin-lumo-styles": "24.4.0-
|
|
50
|
-
"@vaadin/vaadin-material-styles": "24.4.0-
|
|
51
|
-
"@vaadin/vaadin-themable-mixin": "24.4.0-
|
|
44
|
+
"@vaadin/button": "24.4.0-alpha9",
|
|
45
|
+
"@vaadin/component-base": "24.4.0-alpha9",
|
|
46
|
+
"@vaadin/confirm-dialog": "24.4.0-alpha9",
|
|
47
|
+
"@vaadin/text-field": "24.4.0-alpha9",
|
|
48
|
+
"@vaadin/tooltip": "24.4.0-alpha9",
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha9",
|
|
50
|
+
"@vaadin/vaadin-material-styles": "24.4.0-alpha9",
|
|
51
|
+
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha9",
|
|
52
52
|
"lit": "^3.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@esm-bundle/chai": "^4.3.4",
|
|
56
|
-
"@vaadin/a11y-base": "24.4.0-
|
|
56
|
+
"@vaadin/a11y-base": "24.4.0-alpha9",
|
|
57
57
|
"@vaadin/testing-helpers": "^0.6.0",
|
|
58
58
|
"gulp": "^4.0.2",
|
|
59
59
|
"gulp-cli": "^2.3.0",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"web-types.json",
|
|
66
66
|
"web-types.lit.json"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "effb81abe3c6283a6ec620cc0cee56069af58226"
|
|
69
69
|
}
|
|
@@ -673,7 +673,12 @@ export const RichTextEditorMixin = (superClass) =>
|
|
|
673
673
|
let content = editor.innerHTML;
|
|
674
674
|
|
|
675
675
|
// Remove Quill classes, e.g. ql-syntax, except for align
|
|
676
|
-
content = content.replace(
|
|
676
|
+
content = content.replace(/class="([^"]*)"/gu, (match, group1) => {
|
|
677
|
+
const classes = group1.split(' ').filter((className) => {
|
|
678
|
+
return !className.startsWith('ql-') || className.startsWith('ql-align');
|
|
679
|
+
});
|
|
680
|
+
return `class="${classes.join(' ')}"`;
|
|
681
|
+
});
|
|
677
682
|
// Remove meta spans, e.g. cursor which are empty after Quill classes removed
|
|
678
683
|
content = content.replace(/<\/?span[^>]*>/gu, '');
|
|
679
684
|
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED