Skip to content

Commit

Permalink
fixup! add examples for NcRichContenteditable.vue output
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 30, 2023
1 parent 441f6b2 commit b938b03
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/components/NcRichContenteditable/NcRichContenteditable.vue
Expand Up @@ -48,11 +48,13 @@ This component displays contenteditable div with automated `@` [at] autocompleti
placeholder="Try mentioning user @Test01 or inserting emoji :smile"
@submit="onSubmit" />

<h5>Output - default</h5>
{{ message }}
<h5>Output - raw</h5>
{{ JSON.stringify(message) }}

<h5>Output - in JSON.stringify()</h5>
{{ JSON.stringify(message) }}
<h5>Output - preformatted</h5>
<p class="pre-line">
{{ message }}
</p>

<h5>Output - in NcRichText with markdown support</h5>
<NcRichText :text="message" use-markdown />
Expand Down Expand Up @@ -157,6 +159,11 @@ export default {
font-weight: bold;
margin: 40px 0 20px 0;
}
.pre-line {
margin: -20px 0;
white-space: pre-line;
}
</style>
```

Expand Down

0 comments on commit b938b03

Please sign in to comment.