X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/33ac6d1d20c9834ea1309f15d2baf32eb4b85ef0:/edit.js..9ed73579aefba12ff191afc09766108bee783015:/edit/page.js diff --git a/edit.js b/edit/page.js similarity index 95% rename from edit.js rename to edit/page.js index 5384f2c..e40b376 100644 --- a/edit.js +++ b/edit/page.js @@ -16,8 +16,8 @@ CKEDITOR.plugins.add('inlinesave', { body = body.replace(/

(\[\[.*\]\])<\/p>/g, '$1'); var data = 'body='+encodeURIComponent(body); - ajaxpost = new XMLHttpRequest(); - ajaxpost.open('POST', '/edit'+pagename, true); + var ajaxpost = new XMLHttpRequest(); + ajaxpost.open('POST', '/edit/page'+pagename, true); ajaxpost.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); ajaxpost.onreadystatechange = function () { if (ajaxpost.readyState != 4) @@ -80,8 +80,8 @@ CKEDITOR.on('instanceCreated', function (event) { config.format_tags = 'h2;h3;h4;p'; config.allowedContent = true; config.entities = false; // keep unicode - config.filebrowserImageUploadUrl = '/edit?output=ckescript'; - config.uploadUrl = '/edit?output=ckjson'; + config.filebrowserImageUploadUrl = '/edit/page?output=ckescript'; + config.uploadUrl = '/edit/page?output=ckjson'; config.image2_alignClasses = ['left', 'center', 'right']; config.image2_disableResizer = true; config.stylesSet = [