diff --git a/django_markdown/static/django_markdown/markdown.js b/django_markdown/static/django_markdown/markdown.js
index <HASH>..<HASH> 100644
--- a/django_markdown/static/django_markdown/markdown.js
+++ b/django_markdown/static/django_markdown/markdown.js
@@ -101,6 +101,16 @@ miu = (function($){
          * Editor instance: default mIu settings extended with what you passed to miu.init(..., extraSettings)
          * */
         var editorSettings = $.extend(settings, extraSettings);
+
+        /*
+         * Initialize/re-initialize the editor
+         * */
+        function init(){
+            with($('#' + textareaId)){
+                markItUpRemove();
+                markItUp(editorSettings);
+            }
+        }
         
         /*
          * Dynamicaly adds button to the editor at index position
@@ -128,20 +138,11 @@ miu = (function($){
         function config(newSettings){
             if(newSettings){
                 editorSettings = newSettings;
+                init();
             }
             return editorSettings;
         }
         
-        /*
-         * Initialize/re-initialize the editor
-         * */
-        function init(){
-            with($('#' + textareaId)){
-                markItUpRemove();
-                markItUp(editorSettings);
-            }
-        }
-        
         /* ----- initializing ------ */
         
         this.addButton = addButton;
Reinit JS editor after new settings set