Browse Source

trying helpful idea :)

master
Marius Ciepluch 6 years ago
committed by GitHub
parent
commit
0e315a91bb
1 changed files with 12 additions and 3 deletions
  1. +12
    -3
      assets/javascripts/image-tag-whitelist.js

+ 12
- 3
assets/javascripts/image-tag-whitelist.js

@ -1,3 +1,12 @@
(function () {
Discourse.Markdown.whiteListTag('color', 'center', 'anchor', 'font', 'table', 'tr', 'td', 'span');
}).call(this);
import WhiteLister from 'pretty-text/white-lister';
export default {
name: 'dropcap',
initialize() {
const whiteLister = new WhiteLister();
whiteLister.whiteListFeature("dropcap", [
'span.dropcap'
]);
}
};

Loading…
Cancel
Save