git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edit: right-align ckeditor toolbar
[minimedit.git]
/
edit.js
diff --git
a/edit.js
b/edit.js
index c5d6ce3198610da8a490456c0a479c9a61d888cb..0d45de956e133ee68256e4d2701cfe76e910adcd 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-56,6
+56,10
@@
CKEDITOR.on('instanceCreated', function (event) {
['Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', '-', 'Anchor', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
['Bold', 'Italic', 'Underline', 'Strike', 'RemoveFormat', '-', 'Anchor', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
+ config.toolbarCanCollapse = true;
+ config.floatSpacePreferRight = true;
+ config.floatSpaceDockedOffsetY = 0;
+ config.startupFocus = true;
config.disableObjectResizing = true;
document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
config.disableObjectResizing = true;
document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
@@
-91,7
+95,6
@@
if (pagebody) {
}
else {
CKEDITOR.inline(pagebody);
}
else {
CKEDITOR.inline(pagebody);
- pagebody.focus();
}
document.body.className = toggled ? '' : 'edit';
return false;
}
document.body.className = toggled ? '' : 'edit';
return false;