X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/fa949c0747fa001c345a139abb9889a18ba2563a..a66a71bc45f176c549f227ee843875f23b71e5e4:/edit/page.js diff --git a/edit/page.js b/edit/page.js index 522d63e..9997e29 100644 --- a/edit/page.js +++ b/edit/page.js @@ -2,7 +2,7 @@ CKEDITOR.plugins.add('inlinesave', { init: function(editor) { editor.addCommand( 'inlinesave', { exec: function (editor) { - var pagename = window.location.pathname.replace(/\/$/, '/index'); + var pagename = window.location.pathname; var body = editor.getData(); // empty line is equivalent to a paragraph break body = body.replace(/
\s*
/g, '

');