From c44cf58551f939288739e1c4edd2caf12e23fa90 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 22 Dec 2020 19:34:53 +0100 Subject: [PATCH] edit/page: include admin stylesheet in editor ui Fix dialog style separated in the previous commit. --- edit/page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'], -- 2.30.0