From: Mischa POSLAWSKY Date: Tue, 22 Dec 2020 18:34:53 +0000 (+0100) Subject: edit/page: include admin stylesheet in editor ui X-Git-Tag: v5.1~28 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/c44cf58551f939288739e1c4edd2caf12e23fa90 edit/page: include admin stylesheet in editor ui Fix dialog style separated in the previous commit. --- diff --git a/edit/page.js b/edit/page.js index 1896c05..f9bfd62 100644 --- 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'],