Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mintyhippoxyz committed Mar 13, 2020
1 parent 2c3f765 commit 6e93267
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions public/javascripts/openKB.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ $(document).ready(function(){
var simplemde = new SimpleMDE({
element: $('#editor')[0],
spellChecker: config.enable_spellchecker,
toolbar: ['bold', 'italic', 'heading', '|', 'quote', 'unordered-list', 'ordered-list', '|', 'link', 'image', '|', 'table', 'horizontal-rule', 'code', 'guide']
toolbar: ['bold', 'italic', 'strikethrough', 'heading', '|', 'quote', 'unordered-list', 'ordered-list', '|', 'link', 'image', '|', 'table', 'horizontal-rule', 'code', 'guide']
});

// setup inline attachments
Expand Down Expand Up @@ -258,7 +258,8 @@ $(document).ready(function(){
var cleanHTML = sanitizeHtml(fixed_html, {
allowedTags: [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div',
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'iframe'
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'iframe',
'details', 'summary', 's'
],
allowedAttributes: false
});
Expand Down
3 changes: 2 additions & 1 deletion routes/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ exports.sanitizeHTML = function(html){
return sanitizeHtml(html, {
allowedTags: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol',
'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div',
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'iframe'
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'img', 'iframe',
'details', 'summary', 's'
],
allowedAttributes: false
});
Expand Down

0 comments on commit 6e93267

Please sign in to comment.