edit/page: include admin stylesheet in editor ui
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 22 Dec 2020 18:34:53 +0000 (19:34 +0100)
committerMischa 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

index 1896c056c5a93cf058f5345d36c500db894f012a..f9bfd629948f46d2bddaee01318fb02cb97147a9 100644 (file)
@@ -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'],