leisure-core 0.2.5 → 0.2.7
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/le-rich-text/src/main.vue +10 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
:style="'height:' + height"
|
|
12
12
|
v-model="content"
|
|
13
13
|
ref="vueeditor"
|
|
14
|
+
@input="inputChange"
|
|
14
15
|
useCustomImageHandler
|
|
15
16
|
@image-added="vueEditorHandleImageAdded"
|
|
16
17
|
></le-editor>
|
|
@@ -79,6 +80,13 @@ export default {
|
|
|
79
80
|
}
|
|
80
81
|
this.$emit("onSubmit", comments);
|
|
81
82
|
},
|
|
83
|
+
inputChange() {
|
|
84
|
+
let comments = this.content;
|
|
85
|
+
if (this.isBase64) {
|
|
86
|
+
comments = Base64.encode(comments);
|
|
87
|
+
}
|
|
88
|
+
this.$emit("inputChange", comments);
|
|
89
|
+
},
|
|
82
90
|
selectContent(value) {
|
|
83
91
|
let quill = this.$refs.vueeditor.quill;
|
|
84
92
|
let cursorLocation = quill.selection.savedRange.index;
|
|
@@ -126,6 +134,8 @@ export default {
|
|
|
126
134
|
</script>
|
|
127
135
|
<style lang="scss" scoped>
|
|
128
136
|
.le-rich-text {
|
|
137
|
+
overflow-y: auto !important;
|
|
138
|
+
height: 100%;
|
|
129
139
|
.header {
|
|
130
140
|
display: flex;
|
|
131
141
|
display: -webkit-flex;
|