Browse Source

try and error - JS imports for Discoure

import { registerOption } from 'pretty-text/pretty-text';
import {whiteListIframe} from 'pretty-text/sanitizer';
master
Marius Ciepluch 7 years ago
committed by GitHub
parent
commit
77b19f36d5
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      assets/javascripts/image-tag-whitelist.js

+ 1
- 2
assets/javascripts/image-tag-whitelist.js

@ -1,9 +1,8 @@
import { registerOption } from 'pretty-text/pretty-text';
import {whiteListTag} from 'pretty-text/sanitizer';
(function() {
Discourse.Markdown.whiteListTag('span', 'class', 'dropcap');
Discourse.Markdown.whiteListTag('span', 'class', 'sclass');
})();

Loading…
Cancel
Save