Skip to content

Commit

Permalink
docs(fluent-editor): remove useless demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Dec 27, 2024
1 parent 0908b0f commit 73bdf7d
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 68 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<template>
<div>
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
<div class="fluent-editor-demo__basic-usage__content">
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
<div class="fluent-editor-demo__basic-usage__content">
内容:<br />
{{ content }}
</div>
</template>

Expand Down
10 changes: 4 additions & 6 deletions examples/sites/demos/pc/app/fluent-editor/basic-usage.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<template>
<div>
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
<div class="fluent-editor-demo__basic-usage__content">
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content"></tiny-fluent-editor>
<div class="fluent-editor-demo__basic-usage__content">
内容:<br />
{{ content }}
</div>
</template>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<template>
<div>
<tiny-fluent-editor
ref="fluentEditorRef"
v-model="content"
:before-editor-init="beforeEditorInit"
:options="editorOptions"
></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor
ref="fluentEditorRef"
v-model="content"
:before-editor-init="beforeEditorInit"
:options="editorOptions"
></tiny-fluent-editor>
</template>

<script setup>
Expand Down
16 changes: 6 additions & 10 deletions examples/sites/demos/pc/app/fluent-editor/before-editor-init.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<template>
<div>
<tiny-fluent-editor
ref="fluentEditorRef"
v-model="content"
:before-editor-init="beforeEditorInit"
:options="editorOptions"
></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor
ref="fluentEditorRef"
v-model="content"
:before-editor-init="beforeEditorInit"
:options="editorOptions"
></tiny-fluent-editor>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="value" :data-type="false" :data-upgrade="false"></tiny-fluent-editor>
内容:<br />
{{ value }}
</div>
<tiny-fluent-editor v-model="value" :data-type="false" :data-upgrade="false"></tiny-fluent-editor>
</template>

<script setup>
Expand Down
6 changes: 1 addition & 5 deletions examples/sites/demos/pc/app/fluent-editor/data-switch.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="value" :data-type="false" :data-upgrade="false"></tiny-fluent-editor>
内容:<br />
{{ value }}
</div>
<tiny-fluent-editor v-model="value" :data-type="false" :data-upgrade="false"></tiny-fluent-editor>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" disabled></tiny-fluent-editor>
</div>
<tiny-fluent-editor v-model="content" disabled></tiny-fluent-editor>
</template>

<script setup>
Expand Down
4 changes: 1 addition & 3 deletions examples/sites/demos/pc/app/fluent-editor/disabled.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" disabled></tiny-fluent-editor>
</div>
<tiny-fluent-editor v-model="content" disabled></tiny-fluent-editor>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" :image-upload="imageUpload"></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content" :image-upload="imageUpload"></tiny-fluent-editor>
</template>

<script setup>
Expand Down
6 changes: 1 addition & 5 deletions examples/sites/demos/pc/app/fluent-editor/image-upload.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" :image-upload="imageUpload"></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content" :image-upload="imageUpload"></tiny-fluent-editor>
</template>

<script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" :options="options"></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content" :options="options"></tiny-fluent-editor>
</template>

<script setup>
Expand Down
6 changes: 1 addition & 5 deletions examples/sites/demos/pc/app/fluent-editor/options.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<template>
<div>
<tiny-fluent-editor v-model="content" :options="options"></tiny-fluent-editor>
内容:<br />
{{ content }}
</div>
<tiny-fluent-editor v-model="content" :options="options"></tiny-fluent-editor>
</template>

<script>
Expand Down

0 comments on commit 73bdf7d

Please sign in to comment.