diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index b8a4ea0ee..cc8bbb6bd 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -98,8 +98,9 @@ var padeditor = (function() v = getOption('showAuthorColors', true); self.ace.setProperty("showsauthorcolors", v); padutils.setCheckbox($("#options-colorscheck"), v); - // Override from parameters - self.ace.setProperty("showsauthorcolors", !settings.noColors); + // Override from parameters if true + if (settings.noColors !== false) + self.ace.setProperty("showsauthorcolors", !settings.noColors); v = getOption('useMonospaceFont', false); self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif"));