Skip to content

Commit

Permalink
removing pure HTML in favor of plaintext
Browse files Browse the repository at this point in the history
  • Loading branch information
czytelny committed Jul 2, 2018
1 parent ac7e0be commit 6840382
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions src/renderer/components/BoardItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@
<span class="item-text"
v-html="textWithLink"
@click="handleLinkClick"
> </span>
v-if="markdownMode"
>
</span>
<span class="item-text"
@click="handleLinkClick"
v-if="!markdownMode"
>
{{textWithLink}}
</span>
<span v-if="showDate" class="creationDate">{{created | simpleDate}}</span>
</div>
<span class="actionBtns" v-if="!isEditing">
Expand Down Expand Up @@ -114,11 +122,7 @@
}
})
}
return this.text.autoLink({
callback: function (url) {
return `<span class='link' title="${url}">${url.split('/')[2]}</span>`
}
})
return this.text
}
},
filters: {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/settings/GeneralSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
</i-switch>
Edit item mode support:
<transition name="fade" mode="out-in">
<span v-if="!settings.markdownMode" key="html">
HTML
<span v-if="!settings.markdownMode" key="plaintext">
Plaintext
</span>
<span v-if="settings.markdownMode" key="markdown">
Markdown
Expand Down

0 comments on commit 6840382

Please sign in to comment.