git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename all html files to php
[minimedit.git]
/
edit.js
diff --git
a/edit.js
b/edit.js
index 57a6f3c06b278d6d400ba72d45c2f4cfa1db075a..dee103855135dca7f4ddd251a02cb1f9355eb820 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-2,7
+2,7
@@
CKEDITOR.plugins.add('inlinesave', {
init: function(editor) {
editor.addCommand( 'inlinesave', {
exec: function (editor) {
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);
var data = 'body='+encodeURIComponent(editor.getData());
ajaxpost = new XMLHttpRequest();
ajaxpost.open('POST', '/edit.php'+pagename, true);
@@
-48,6
+48,7
@@
CKEDITOR.on('instanceCreated', function (event) {
config.entities = false; // keep unicode
config.filebrowserImageUploadUrl = '/edit.php?type=img';
config.forcePasteAsPlainText = 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'],
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],