Browse Source

whitelist div.alert*

master
hape 3 years ago
parent
commit
a5b152812f
1 changed files with 9 additions and 11 deletions
  1. +9
    -11
      assets/javascripts/lib/discourse-markdown/dropcaps.js

+ 9
- 11
assets/javascripts/lib/discourse-markdown/dropcaps.js

@ -3,15 +3,13 @@ export function setup(helper) {
opts.features['dropcaps'] = true; //!!siteSettings.dropcaps_enabled;
});
helper.allowList([
'div.alert',
'div.alert.alert-silver',
'div.alert.alert-info',
'div.alert.alert-success',
'div.alert alert-warning',
'div.alert alert-error',
'div.alert alert-danger',
'span.dropcaps',
'span.sclass'
]);
helper.allowList(["div.alert"]);
helper.allowList(["div.alert.alert-silver"]);
helper.allowList(["div.alert.alert-info"]);
helper.allowList(["div.alert.alert-success"]);
helper.allowList(["div.alert.alert-warning"]);
helper.allowList(["div.alert.alert-error"]);
helper.allowList(["div[class]"]);
helper.allowList(["span[class]"]);
helper.allowList(["font[color]"]);
}

Loading…
Cancel
Save