From a5db2f0149ac34be9791bd4e53bfd5677234eb5e Mon Sep 17 00:00:00 2001
From: “dzb” <2632970487@qq.com>
Date: 星期一, 24 十月 2022 10:59:11 +0800
Subject: [PATCH] 修改package.json
---
src/components/edit/index.vue | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/src/components/edit/index.vue b/src/components/edit/index.vue
index 7752241..ec89cb5 100644
--- a/src/components/edit/index.vue
+++ b/src/components/edit/index.vue
@@ -11,6 +11,7 @@
editor: null
}
},
+ props:['getMyBody'],
mounted() {
this.editor = new E('#edit');
this.editor.config.height = 450;
@@ -18,6 +19,11 @@
'#4b9bb7',
'#09152f'
]
+
+ this.editor.config.onchange =(html)=>{
+ // 绗簩姝ワ紝鐩戞帶鍙樺寲锛屽悓姝ユ洿鏂板埌 textarea
+ this.$emit('getMyBody',html);
+ }
this.editor.create();
},
beforeDestroy() {
@@ -28,14 +34,15 @@
}
</script>
<style lang="scss" scoped>
- #edit{
- :deep(.w-e-toolbar){
- background-color: #09152f !important;
- color: #4b9bb7;
- }
- :deep(.w-e-text-container){
- background-color: #09152f !important;
- color: #4b9bb7;
- }
+#edit {
+ :deep(.w-e-toolbar) {
+ background-color: #09152f !important;
+ color: #4b9bb7;
}
+
+ :deep(.w-e-text-container) {
+ background-color: #09152f !important;
+ color: #4b9bb7;
+ }
+}
</style>
\ No newline at end of file
--
Gitblit v1.8.0