             return currentCaretPosition - removedLineLength + 1
 
         markdownSettings =
-            nameSpace: 'markdown'
-            onShiftEnter: {keepDefault:false, openWith:'\n\n'}
+            nameSpace: "markdown"
+            onShiftEnter: {keepDefault:false, openWith:"\n\n"}
             onEnter:
                 keepDefault: false
                 replaceWith: (data) =>

        previewDomNode = $("<div/>", {class: "preview"})

        #openHelp = ->
        #    window.open($rootscope.urls.wikiHelpUrl(), '_blank')

        closePreviewMode = ->
            element.parents(".markdown").find(".preview").remove()

                    closeWith: "\n```"
                },
                {
                    separator: "---------------"
                },
                {
                    name: $tr.t("markdown-editor.preview")
