diff --git a/lib/gollum/frontend/public/gollum/livepreview/index.html b/lib/gollum/frontend/public/gollum/livepreview/index.html index 828a6317..3f29164e 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/index.html +++ b/lib/gollum/frontend/public/gollum/livepreview/index.html @@ -16,7 +16,7 @@ Toggle left to right -
+
diff --git a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js index 923f3689..67bea80a 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js +++ b/lib/gollum/frontend/public/gollum/livepreview/js/livepreview.js @@ -465,6 +465,11 @@ var applyTimeout = function () { win.jsm.resize = resize; + // remove editor_bg after loading because + // it'll cause problems if toggle left right is used + var ebg = doc.getElementById('editor_bg'); + ebg.parentNode.removeChild(ebg); + /* Resize can be called an absurd amount of times and will crash the page without debouncing.