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: refer to upcoming image upload handler
[minimedit.git]
/
edit.js
diff --git
a/edit.js
b/edit.js
index 94e84cc19728757f11b9ba21f2db93b3884788e4..95a512efb776fca604edacf4dd986493f8e1b2c8 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-45,6
+45,7
@@
CKEDITOR.on('instanceCreated', function (event) {
config.format_tags = 'h2;h3;h4;p';
config.allowedContent = true;
config.entities = false; // keep unicode
config.format_tags = 'h2;h3;h4;p';
config.allowedContent = true;
config.entities = false; // keep unicode
+ config.filebrowserImageUploadUrl = '/edit.php?type=img';
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],
@@
-52,6
+53,9
@@
CKEDITOR.on('instanceCreated', function (event) {
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
['Bold', 'Italic', 'Underline', 'Strike', '-', 'Link'],
['HorizontalRule', 'Table', 'Image'],
];
+
+ config.disableObjectResizing = true;
+ document.execCommand('enableObjectResizing', false, false); // workaround in inline mode; ff bug?
});
});
});
});