@zeedhi/zd-richtext-vue 1.4.1 → 1.4.2

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.
@@ -153,6 +153,13 @@ let ZdRichText = class ZdRichText extends ZdComponentRender {
153
153
  setFillHeight(this.$el);
154
154
  }
155
155
  I18n.registerChangeListener(this.changeLanguage);
156
+ this.setEditorDisabled();
157
+ }
158
+ // set tiptap editor as disabled
159
+ setEditorDisabled() {
160
+ const { editor } = this.$refs.tiptap;
161
+ if (editor)
162
+ editor.setOptions({ editable: !this.instance.disabled });
156
163
  }
157
164
  destroyed() {
158
165
  I18n.unregisterChangeListener(this.changeLanguage);
@@ -470,7 +477,7 @@ __vue_render__$1._withStripped = true;
470
477
  /* style */
471
478
  const __vue_inject_styles__$1 = function (inject) {
472
479
  if (!inject) return
473
- inject("data-v-dca47842_0", { source: ".zd-rich-text #tippy-1 {\n display: none;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--light.rounded {\n background-color: #ffffff !important;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--dark.rounded {\n background-color: #383838 !important;\n}\n.zd-rich-text .v-toolbar__content button.v-btn {\n color: #ffffff !important;\n}", map: undefined, media: undefined });
480
+ inject("data-v-122c064d_0", { source: ".zd-rich-text #tippy-1 {\n display: none;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--light.rounded {\n background-color: #ffffff !important;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--dark.rounded {\n background-color: #383838 !important;\n}\n.zd-rich-text .v-toolbar__content button.v-btn {\n color: #ffffff !important;\n}", map: undefined, media: undefined });
474
481
 
475
482
  };
476
483
  /* scoped */
@@ -153,6 +153,13 @@
153
153
  vuetify$1.setFillHeight(this.$el);
154
154
  }
155
155
  core.I18n.registerChangeListener(this.changeLanguage);
156
+ this.setEditorDisabled();
157
+ }
158
+ // set tiptap editor as disabled
159
+ setEditorDisabled() {
160
+ const { editor } = this.$refs.tiptap;
161
+ if (editor)
162
+ editor.setOptions({ editable: !this.instance.disabled });
156
163
  }
157
164
  destroyed() {
158
165
  core.I18n.unregisterChangeListener(this.changeLanguage);
@@ -470,7 +477,7 @@
470
477
  /* style */
471
478
  const __vue_inject_styles__$1 = function (inject) {
472
479
  if (!inject) return
473
- inject("data-v-dca47842_0", { source: ".zd-rich-text #tippy-1 {\n display: none;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--light.rounded {\n background-color: #ffffff !important;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--dark.rounded {\n background-color: #383838 !important;\n}\n.zd-rich-text .v-toolbar__content button.v-btn {\n color: #ffffff !important;\n}", map: undefined, media: undefined });
480
+ inject("data-v-122c064d_0", { source: ".zd-rich-text #tippy-1 {\n display: none;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--light.rounded {\n background-color: #ffffff !important;\n}\n.zd-rich-text .vuetify-pro-tiptap-editor.v-card.v-card--flat.v-sheet.theme--dark.rounded {\n background-color: #383838 !important;\n}\n.zd-rich-text .v-toolbar__content button.v-btn {\n color: #ffffff !important;\n}", map: undefined, media: undefined });
474
481
 
475
482
  };
476
483
  /* scoped */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/zd-richtext-vue",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "RichTextVue by BVR",
5
5
  "main": "dist/rich-text-vue.umd.js",
6
6
  "module": "dist/rich-text-vue.esm.js",
@@ -31,5 +31,5 @@
31
31
  "vue-class-component": "7.2.*",
32
32
  "vue-property-decorator": "9.1.*"
33
33
  },
34
- "gitHead": "adc8c7029269d32160c4e756a79a87351fe94dd9"
34
+ "gitHead": "b13fac05395351ba466cc003ab891fd3cbeecd09"
35
35
  }
@@ -24,5 +24,6 @@ export default class ZdRichText extends ZdComponentRender {
24
24
  onBlur(event: Event): void;
25
25
  toolbar: import("vue").Ref<any[]>;
26
26
  mounted(): void;
27
+ setEditorDisabled(): void;
27
28
  destroyed(): void;
28
29
  }