@vaadin/rich-text-editor 23.3.23 → 23.3.24

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.23",
3
+ "version": "23.3.24",
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.23",
44
- "@vaadin/component-base": "~23.3.23",
45
- "@vaadin/confirm-dialog": "~23.3.23",
46
- "@vaadin/text-field": "~23.3.23",
47
- "@vaadin/tooltip": "~23.3.23",
48
- "@vaadin/vaadin-lumo-styles": "~23.3.23",
49
- "@vaadin/vaadin-material-styles": "~23.3.23",
50
- "@vaadin/vaadin-themable-mixin": "~23.3.23"
43
+ "@vaadin/button": "~23.3.24",
44
+ "@vaadin/component-base": "~23.3.24",
45
+ "@vaadin/confirm-dialog": "~23.3.24",
46
+ "@vaadin/text-field": "~23.3.24",
47
+ "@vaadin/tooltip": "~23.3.24",
48
+ "@vaadin/vaadin-lumo-styles": "~23.3.24",
49
+ "@vaadin/vaadin-material-styles": "~23.3.24",
50
+ "@vaadin/vaadin-themable-mixin": "~23.3.24"
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": "0027e59e0405f668a089c10e75bb488da9a665b8"
65
+ "gitHead": "07a74c563367975ba23733cbe7ebeddc0b2faecc"
66
66
  }
@@ -526,13 +526,6 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
526
526
  }
527
527
  }
528
528
 
529
- /** @protected */
530
- disconnectedCallback() {
531
- super.disconnectedCallback();
532
- this._editor.emitter.removeAllListeners();
533
- this._editor.emitter.listeners = {};
534
- }
535
-
536
529
  /** @private */
537
530
  __setDirection(dir) {
538
531
  // Needed for proper `ql-align` class to be set and activate the toolbar align button
@@ -554,14 +547,18 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
554
547
  }
555
548
 
556
549
  /** @protected */
557
- connectedCallback() {
558
- super.connectedCallback();
550
+ ready() {
551
+ super.ready();
559
552
 
560
553
  const editor = this.shadowRoot.querySelector('[part="content"]');
554
+ const toolbarConfig = this._prepareToolbar();
555
+ this._toolbar = toolbarConfig.container;
556
+
557
+ this._addToolbarListeners();
561
558
 
562
559
  this._editor = new Quill(editor, {
563
560
  modules: {
564
- toolbar: this._toolbarConfig,
561
+ toolbar: toolbarConfig,
565
562
  },
566
563
  });
567
564
 
@@ -573,6 +570,10 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
573
570
  this.__patchFirefoxFocus();
574
571
  }
575
572
 
573
+ this.$.linkDialog.$.dialog.$.overlay.addEventListener('vaadin-overlay-open', () => {
574
+ this.$.linkUrl.focus();
575
+ });
576
+
576
577
  const editorContent = editor.querySelector('.ql-editor');
577
578
 
578
579
  editorContent.setAttribute('role', 'textbox');
@@ -603,20 +604,6 @@ class RichTextEditor extends ElementMixin(ThemableMixin(PolymerElement)) {
603
604
  this._editor.on('selection-change', this.__announceFormatting.bind(this));
604
605
  }
605
606
 
606
- /** @protected */
607
- ready() {
608
- super.ready();
609
-
610
- this._toolbarConfig = this._prepareToolbar();
611
- this._toolbar = this._toolbarConfig.container;
612
-
613
- this._addToolbarListeners();
614
-
615
- this.$.linkDialog.$.dialog.$.overlay.addEventListener('vaadin-overlay-open', () => {
616
- this.$.linkUrl.focus();
617
- });
618
- }
619
-
620
607
  /** @private */
621
608
  _prepareToolbar() {
622
609
  const clean = Quill.imports['modules/toolbar'].DEFAULTS.handlers.clean;
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.23",
4
+ "version": "23.3.24",
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.23",
4
+ "version": "23.3.24",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {