FEATURE: site setting enable_mentions to turn on/off mentions

This commit is contained in:
Joffrey JAFFEUX
2017-12-07 11:30:47 -05:00
committed by Robin Ward
parent 3e4f02a180
commit fd99e1ef56
6 changed files with 38 additions and 20 deletions

View File

@@ -38,6 +38,10 @@ function addMention(buffer, matches, state) {
}
export function setup(helper) {
helper.registerOptions((opts, siteSettings) => {
opts.features.mentions = !!siteSettings.enable_mentions;
});
helper.registerPlugin(md => {
const rule = {