@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/rich-text-editor",
3
- "version": "23.3.20",
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.20",
44
- "@vaadin/component-base": "~23.3.20",
45
- "@vaadin/confirm-dialog": "~23.3.20",
46
- "@vaadin/text-field": "~23.3.20",
47
- "@vaadin/tooltip": "~23.3.20",
48
- "@vaadin/vaadin-lumo-styles": "~23.3.20",
49
- "@vaadin/vaadin-material-styles": "~23.3.20",
50
- "@vaadin/vaadin-themable-mixin": "~23.3.20"
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": "6010ff63c0309ece424067a17b72e83dfa6db347"
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "23.3.20",
4
+ "version": "23.3.22",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/rich-text-editor",
4
- "version": "23.3.20",
4
+ "version": "23.3.22",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {