|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<FlexCol>
|
|
|
<view class="richtext-preview-box" @click="() => !disabled && !readonly ? edit() : preview()">
|
|
|
- <Parse v-if="modelValue" :content="modelValue" containerStyle="max-height:400px;word-break:break-all;" />
|
|
|
+ <Parse v-if="modelValue" :content="modelValue" contentStyle="max-height:400px;word-break:break-all;overflow:hidden;" />
|
|
|
<Text v-else color="text.second">{{placeholder}}</Text>
|
|
|
<view v-if="modelValue" class="richtext-preview-mask" :style="maskStyle" />
|
|
|
</view>
|
|
|
@@ -86,6 +86,8 @@ async function edit() {
|
|
|
const extraProps = props.extraProps.get();
|
|
|
const extraAiInfo = await props.getExtraAiInfo();
|
|
|
|
|
|
+ console.log('加载编辑器', props.modelValue, extraProps, extraAiInfo);
|
|
|
+
|
|
|
uni.setStorage({
|
|
|
key: 'editorContent',
|
|
|
data: {
|