更换编辑器

This commit is contained in:
2026-07-14 15:49:00 +08:00
parent 238f210d52
commit 4aa9204df7
26 changed files with 4341 additions and 2623 deletions
@@ -16,7 +16,7 @@
</div>
<div class="editor-body">
<WangEditor v-model="noteContent" />
<TiptapEditor v-model="noteContent" />
</div>
</div>
</template>
@@ -25,7 +25,6 @@
import { ref, watch, onMounted } from 'vue';
import { ElMessage } from 'element-plus';
import { DocumentChecked } from '@element-plus/icons-vue';
import WangEditor from './WangEditor.vue';
import { getNotebookDetail, createNotebook, updateNotebook } from '@/api/notebook';
const props = defineProps({
@@ -181,7 +180,7 @@ onMounted(() => {
padding: 20px;
overflow: hidden;
:deep(.wang-editor-wrapper) {
:deep(.tiptap-editor-wrapper) {
height: 100%;
}
}