@vaadin/rich-text-editor 24.4.0-alpha1 → 24.4.0-alpha2
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-lit-rich-text-editor.d.ts +1 -1
- package/src/vaadin-lit-rich-text-editor.js +1 -1
- package/src/vaadin-rich-text-editor-content-styles.js +1 -1
- package/src/vaadin-rich-text-editor-icons.js +1 -1
- package/src/vaadin-rich-text-editor-mixin.d.ts +1 -1
- package/src/vaadin-rich-text-editor-mixin.js +7 -1
- package/src/vaadin-rich-text-editor-styles.js +1 -1
- package/src/vaadin-rich-text-editor-toolbar-styles.js +1 -1
- package/src/vaadin-rich-text-editor.d.ts +1 -1
- package/src/vaadin-rich-text-editor.js +1 -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-alpha2",
|
|
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-alpha2",
|
|
45
|
+
"@vaadin/component-base": "24.4.0-alpha2",
|
|
46
|
+
"@vaadin/confirm-dialog": "24.4.0-alpha2",
|
|
47
|
+
"@vaadin/text-field": "24.4.0-alpha2",
|
|
48
|
+
"@vaadin/tooltip": "24.4.0-alpha2",
|
|
49
|
+
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha2",
|
|
50
|
+
"@vaadin/vaadin-material-styles": "24.4.0-alpha2",
|
|
51
|
+
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha2",
|
|
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-alpha2",
|
|
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": "f303ead58d27e15d81a55db0559611fb77c0e421"
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* Copyright (c) 2000 -
|
|
3
|
+
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
4
4
|
*
|
|
5
5
|
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
6
|
*
|
|
@@ -255,6 +255,10 @@ export const RichTextEditorMixin = (superClass) =>
|
|
|
255
255
|
|
|
256
256
|
/** @private */
|
|
257
257
|
__setDirection(dir) {
|
|
258
|
+
if (!this._editor) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
258
262
|
// Needed for proper `ql-align` class to be set and activate the toolbar align button
|
|
259
263
|
const alignAttributor = Quill.import('attributors/class/align');
|
|
260
264
|
alignAttributor.whitelist = [dir === 'rtl' ? 'left' : 'right', 'center', 'justify'];
|
|
@@ -297,6 +301,8 @@ export const RichTextEditorMixin = (superClass) =>
|
|
|
297
301
|
this.__patchFirefoxFocus();
|
|
298
302
|
}
|
|
299
303
|
|
|
304
|
+
this.__setDirection(this.__dir);
|
|
305
|
+
|
|
300
306
|
const editorContent = editor.querySelector('.ql-editor');
|
|
301
307
|
|
|
302
308
|
editorContent.setAttribute('role', 'textbox');
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED