From db9f5a9bd9c1ffa598d1a1876a227093c2140a74 Mon Sep 17 00:00:00 2001 From: Philippe Masset Date: Sat, 2 Jan 2016 18:52:37 +0100 Subject: [PATCH] Update theme switcher --- src/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/main.js b/src/js/main.js index 5650f11..ecc9c99 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -73,6 +73,10 @@ $(document).ready(function() { [editor.markdownSource, $(editor.markdownHtml), editor.markdownPreview].forEach(function(el) { updateElFontSize(el, cssIncrement); }); + }, + + useTheme: function(stylesheet) { + editor.themeSelector.setAttribute("href", stylesheet); } };