Skip to content

Commit

Permalink
Fix NcRichText example
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Mar 1, 2023
1 parent aefe994 commit d93daf2
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/components/NcRichText/NcRichText.vue
Expand Up @@ -25,20 +25,8 @@
<template>
<div>
<textarea v-model="text" />

<p>
<label for="autolink">
<input id="autolink" v-model="autolink" type="checkbox">
Autolink
</label>
</p>

<p>
<label for="useMarkdown">
<input id="useMarkdown" v-model="useMarkdown" type="checkbox">
Use Markdown
</label>
</p>
<NcCheckboxRadioSwitch :checked.sync="autolink" type="checkbox">Autolink</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="useMarkdown" type="checkbox">Use Markdown</NcCheckboxRadioSwitch>

<NcRichText
:text="text" :autolink="autolink" :arguments="args"
Expand All @@ -53,11 +41,11 @@
Some examples for markdown syntax: **bold text** *italic text* ~~strikethrough~~`,
autolink: true,
useMarkdown: false,
useMarkdown: true,
args: {
file: 'MyDocument.odt',
username: {
component: NcUserBubble,
component: 'NcUserBubble',
props: {
displayName: 'Jane Doe'
}
Expand Down

0 comments on commit d93daf2

Please sign in to comment.