Skip to content

Commit 2e59f30

Browse files
committed
docs(fluent-editor): fixed text exceeding problem caused by too long content in the fluent-editor component demo
1 parent 6a65a60 commit 2e59f30

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

examples/sites/demos/pc/app/fluent-editor/basic-usage-composition-api.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
44
内容:<br />
5-
{{ content }}
5+
<div class="fluent-editor-demo__basic-usage__content">{{ content }}</div>
66
</div>
77
</template>
88

@@ -12,3 +12,9 @@ import { TinyFluentEditor } from '@opentiny/vue'
1212
1313
const content = ref('{"ops":[{"insert":"Hello "},{"attributes":{"bold":true},"insert":"FluentEditor"},{"insert":"!"}]}')
1414
</script>
15+
16+
<style scoped>
17+
.fluent-editor-demo__basic-usage__content {
18+
word-break: break-word;
19+
}
20+
</style>

examples/sites/demos/pc/app/fluent-editor/basic-usage.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
44
内容:<br />
5-
{{ content }}
5+
<div class="fluent-editor-demo__basic-usage__content">{{ content }}</div>
66
</div>
77
</template>
88

@@ -20,3 +20,9 @@ export default {
2020
}
2121
}
2222
</script>
23+
24+
<style scoped>
25+
.fluent-editor-demo__basic-usage__content {
26+
word-break: break-word;
27+
}
28+
</style>

0 commit comments

Comments
 (0)