git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75cf050
)
edit: copy page stylesheet for ckeditor contents
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 28 Sep 2017 00:47:51 +0000
(
02:47
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 28 Sep 2017 01:48:58 +0000
(
03:48
+0200)
Replace hardcoded link specific to Excelsior by a generic solution.
edit.js
patch
|
blob
|
history
diff --git
a/edit.js
b/edit.js
index 21028dc6f4b7d65c8584429e0cc0267c8af5b0b4..3fd8230e4a78783ac3fb50d3c1b8feab6b63b75f 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-54,7
+54,7
@@
CKEDITOR.on('instanceCreated', function (event) {
config.entities = false; // keep unicode
config.filebrowserImageUploadUrl = '/edit?type=img';
config.forcePasteAsPlainText = true;
- config.contentsCss =
'/excelsior.css'
;
+ config.contentsCss =
document.styleSheets[0].href
;
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],