From 46b6415f5fddcea5aa7c4c55842405b68a7ccd6a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 14 Sep 2017 10:44:16 +0200 Subject: wiki: do not suggest bbcode if mimetype is text/plain --- view/tpl/wiki.tpl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'view/tpl') diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index 681269002..7995b7bb1 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -455,8 +455,10 @@ window.editor.on("input", function() { $('#save-page').removeClass('disabled'); }); + {{if $mimeType == 'text/bbcode'}} window.editor.bbco_autocomplete('bbcode'); {{/if}} + {{/if}} }); $(window).resize(function () { -- cgit v1.2.3