Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Add some sanitisation
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Feb 28, 2019
1 parent 538c232 commit ab06676
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@
import trumbowyg from 'vue-trumbowyg';
// Import editor css
import 'trumbowyg/dist/ui/trumbowyg.css';
import 'trumbowyg/dist/plugins/cleanpaste/trumbowyg.cleanpaste.js';
export default {
data() {
return {
config: {
removeformatPasted: true,
tagsToRemove: ['script', 'link', 'xml'],
btns: [['formatting'], ['bold', 'italic'], ['link'], ['unorderedList', 'orderedList'], ['removeformat'], ['viewHTML']]
}
}
Expand Down

0 comments on commit ab06676

Please sign in to comment.