@zeedhi/zd-richtext-vue 1.4.0 → 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-
|
|
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-
|
|
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.
|
|
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",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"vuetify-pro-tiptap": "^1.4.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@zeedhi/vuetify": "
|
|
28
|
+
"@zeedhi/vuetify": "^1.74.0",
|
|
29
29
|
"@zeedhi/zd-richtext-common": "file:packages/common",
|
|
30
30
|
"vue": "2.7.*",
|
|
31
31
|
"vue-class-component": "7.2.*",
|
|
32
32
|
"vue-property-decorator": "9.1.*"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b13fac05395351ba466cc003ab891fd3cbeecd09"
|
|
35
35
|
}
|