@vaadin/rich-text-editor 24.1.8 → 24.1.9
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.js +11 -24
- 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.1.
|
|
3
|
+
"version": "24.1.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@polymer/polymer": "^3.0.0",
|
|
43
|
-
"@vaadin/button": "~24.1.
|
|
44
|
-
"@vaadin/component-base": "~24.1.
|
|
45
|
-
"@vaadin/confirm-dialog": "~24.1.
|
|
46
|
-
"@vaadin/text-field": "~24.1.
|
|
47
|
-
"@vaadin/tooltip": "~24.1.
|
|
48
|
-
"@vaadin/vaadin-lumo-styles": "~24.1.
|
|
49
|
-
"@vaadin/vaadin-material-styles": "~24.1.
|
|
50
|
-
"@vaadin/vaadin-themable-mixin": "~24.1.
|
|
43
|
+
"@vaadin/button": "~24.1.9",
|
|
44
|
+
"@vaadin/component-base": "~24.1.9",
|
|
45
|
+
"@vaadin/confirm-dialog": "~24.1.9",
|
|
46
|
+
"@vaadin/text-field": "~24.1.9",
|
|
47
|
+
"@vaadin/tooltip": "~24.1.9",
|
|
48
|
+
"@vaadin/vaadin-lumo-styles": "~24.1.9",
|
|
49
|
+
"@vaadin/vaadin-material-styles": "~24.1.9",
|
|
50
|
+
"@vaadin/vaadin-themable-mixin": "~24.1.9"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@esm-bundle/chai": "^4.3.4",
|
|
54
|
-
"@vaadin/a11y-base": "~24.1.
|
|
54
|
+
"@vaadin/a11y-base": "~24.1.9",
|
|
55
55
|
"@vaadin/testing-helpers": "^0.4.2",
|
|
56
56
|
"gulp": "^4.0.2",
|
|
57
57
|
"gulp-cli": "^2.3.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"web-types.json",
|
|
64
64
|
"web-types.lit.json"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "33afe5c47c46df82bf6cfc8cd9dfb2b34ca91067"
|
|
67
67
|
}
|
|
@@ -533,13 +533,6 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
/** @protected */
|
|
537
|
-
disconnectedCallback() {
|
|
538
|
-
super.disconnectedCallback();
|
|
539
|
-
this._editor.emitter.removeAllListeners();
|
|
540
|
-
this._editor.emitter.listeners = {};
|
|
541
|
-
}
|
|
542
|
-
|
|
543
536
|
/** @private */
|
|
544
537
|
__setDirection(dir) {
|
|
545
538
|
// Needed for proper `ql-align` class to be set and activate the toolbar align button
|
|
@@ -561,14 +554,18 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
561
554
|
}
|
|
562
555
|
|
|
563
556
|
/** @protected */
|
|
564
|
-
|
|
565
|
-
super.
|
|
557
|
+
ready() {
|
|
558
|
+
super.ready();
|
|
566
559
|
|
|
567
560
|
const editor = this.shadowRoot.querySelector('[part="content"]');
|
|
561
|
+
const toolbarConfig = this._prepareToolbar();
|
|
562
|
+
this._toolbar = toolbarConfig.container;
|
|
563
|
+
|
|
564
|
+
this._addToolbarListeners();
|
|
568
565
|
|
|
569
566
|
this._editor = new Quill(editor, {
|
|
570
567
|
modules: {
|
|
571
|
-
toolbar:
|
|
568
|
+
toolbar: toolbarConfig,
|
|
572
569
|
},
|
|
573
570
|
});
|
|
574
571
|
|
|
@@ -580,6 +577,10 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
580
577
|
this.__patchFirefoxFocus();
|
|
581
578
|
}
|
|
582
579
|
|
|
580
|
+
this.$.linkDialog.$.dialog.$.overlay.addEventListener('vaadin-overlay-open', () => {
|
|
581
|
+
this.$.linkUrl.focus();
|
|
582
|
+
});
|
|
583
|
+
|
|
583
584
|
const editorContent = editor.querySelector('.ql-editor');
|
|
584
585
|
|
|
585
586
|
editorContent.setAttribute('role', 'textbox');
|
|
@@ -631,20 +632,6 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
|
|
|
631
632
|
this._editor.on('selection-change', this.__announceFormatting.bind(this));
|
|
632
633
|
}
|
|
633
634
|
|
|
634
|
-
/** @protected */
|
|
635
|
-
ready() {
|
|
636
|
-
super.ready();
|
|
637
|
-
|
|
638
|
-
this._toolbarConfig = this._prepareToolbar();
|
|
639
|
-
this._toolbar = this._toolbarConfig.container;
|
|
640
|
-
|
|
641
|
-
this._addToolbarListeners();
|
|
642
|
-
|
|
643
|
-
this.$.linkDialog.$.dialog.$.overlay.addEventListener('vaadin-overlay-open', () => {
|
|
644
|
-
this.$.linkUrl.focus();
|
|
645
|
-
});
|
|
646
|
-
}
|
|
647
|
-
|
|
648
635
|
/** @private */
|
|
649
636
|
_prepareToolbar() {
|
|
650
637
|
const clean = Quill.imports['modules/toolbar'].DEFAULTS.handlers.clean;
|
package/web-types.json
CHANGED