2022-09-14 11:26:01 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2022-12-19 11:57:07 +00:00
|
|
|
<Head>
|
|
|
|
<Title>Vue Editor Component</Title>
|
|
|
|
<Meta name="description" content="Editor is rich text editor component based on Quill." />
|
|
|
|
</Head>
|
|
|
|
|
2022-09-14 11:26:01 +00:00
|
|
|
<div class="content-section introduction">
|
|
|
|
<div class="feature-intro">
|
|
|
|
<h1>Editor</h1>
|
|
|
|
<p>Editor is rich text editor component based on Quill.</p>
|
|
|
|
</div>
|
|
|
|
<AppDemoActions />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="content-section implementation">
|
|
|
|
<div class="card">
|
|
|
|
<h5>Default</h5>
|
|
|
|
<Editor v-model="value1" editorStyle="height: 320px" />
|
|
|
|
|
|
|
|
<h5>Customized</h5>
|
2022-12-08 12:26:57 +00:00
|
|
|
<Editor v-model="value2" editorStyle="height: 320px">
|
|
|
|
<template v-slot:toolbar>
|
|
|
|
<span class="ql-formats">
|
|
|
|
<button v-tooltip.bottom="'Bold'" class="ql-bold"></button>
|
|
|
|
<button v-tooltip.bottom="'Italic'" class="ql-italic"></button>
|
|
|
|
<button v-tooltip.bottom="'Underline'" class="ql-underline"></button>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
</Editor>
|
2022-09-14 11:26:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-08 12:26:57 +00:00
|
|
|
|
|
|
|
<EditorDoc />
|
2022-09-14 11:26:01 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import EditorDoc from './EditorDoc';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value1: '<div>Welcome to PrimeVue <b>Editor</b></div><div><br></div>',
|
|
|
|
value2: ''
|
|
|
|
};
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
EditorDoc: EditorDoc
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|