diff --git a/src/components/Editor/PreviewOptions.vue b/src/components/Editor/PreviewOptions.vue index 2728207c9de..8e19892d2eb 100644 --- a/src/components/Editor/PreviewOptions.vue +++ b/src/components/Editor/PreviewOptions.vue @@ -27,14 +27,18 @@ + :checked="value === 'text-only'" + @change="e => $emit('update:value', e.currentTarget.value)"> {{ t('text', 'Text only') }} + name="preview-option" + value="link-preview" + :checked="value === 'link-preview'" + @change="e => $emit('update:value', e.currentTarget.value)"> {{ t('text', 'Show link preview') }} @@ -46,6 +50,12 @@ import DotsVerticalIcon from 'vue-material-design-icons/DotsVertical.vue' export default { name: 'PreviewOptions', + props: { + value: { + type: String, + required: true, + }, + }, components: { DotsVerticalIcon, NcActions, diff --git a/src/nodes/ParagraphView.vue b/src/nodes/ParagraphView.vue index 7864559ebea..19bc39ec8d1 100644 --- a/src/nodes/ParagraphView.vue +++ b/src/nodes/ParagraphView.vue @@ -23,7 +23,8 @@ @@ -31,6 +32,7 @@