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:
189155e
)
edit/page: include admin stylesheet in editor ui
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 22 Dec 2020 18:34:53 +0000
(19:34 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 22 Dec 2020 23:35:41 +0000
(
00:35
+0100)
Fix dialog style separated in the previous commit.
edit/page.js
patch
|
blob
|
history
diff --git
a/edit/page.js
b/edit/page.js
index 1896c056c5a93cf058f5345d36c500db894f012a..f9bfd629948f46d2bddaee01318fb02cb97147a9 100644
(file)
--- a/
edit/page.js
+++ b/
edit/page.js
@@
-146,7
+146,7
@@
CKEDITOR.on('instanceCreated', function (event) {
{ name: 'Uitgelogd', element: 'span', attributes: { 'class': 'logout' } },
];
config.pasteFilter = pastefilter;
- config.contentsCss =
document.styleSheets[0].href
;
+ config.contentsCss =
[...document.styleSheets].map(e => e.href).filter(Boolean)
;
config.toolbar = [
['Inlinesave', '-', 'Undo', 'Redo'],
['Styles', 'Bold', 'Italic', 'Link'],