init: function(editor) {
editor.addCommand( 'inlinesave', {
exec: function (editor) {
- var pagename = window.location.pathname.replace(/\.html$/, '').replace(/\/$/, '/index');
+ var pagename = window.location.pathname.replace(/\.php$/, '').replace(/\/$/, '/index');
var data = 'body='+encodeURIComponent(editor.getData());
ajaxpost = new XMLHttpRequest();
ajaxpost.open('POST', '/edit.php'+pagename, true);
config.entities = false; // keep unicode
config.filebrowserImageUploadUrl = '/edit.php?type=img';
config.forcePasteAsPlainText = true;
+ config.contentsCss = '/excelsior.css';
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],