From f72976c7d48084e756dc8ce681741be28b71a8b8 Mon Sep 17 00:00:00 2001 From: Julio Date: Mon, 23 Aug 2021 09:09:14 +0200 Subject: [PATCH] Documents: Add document.css when loading an HTML file --- assets/css/document.css | 40 ++----------------- .../Controller/ResourceController.php | 1 + 2 files changed, 5 insertions(+), 36 deletions(-) diff --git a/assets/css/document.css b/assets/css/document.css index f51e155a9d..eca371ee10 100644 --- a/assets/css/document.css +++ b/assets/css/document.css @@ -1,36 +1,4 @@ -/* -Stylesheet for HTML documents created with CKEditor. - -This stylesheet must import editor_content.css file -*/ -@import url(./editor_content.css); - -body { - color: #666; - font-family: 'Open Sans', sans-serif; - line-height: 30px; - padding: 1em; -} - -blockquote { - background: #f9f9f9; - border-left: 8px solid #ccc; - display: inline-block; - font: 14px/20px italic Times, serif; - margin: 1.5em 10px; - padding: 0.5em 10px; - quotes: "\201C" "\201D" "\2018" "\2019"; -} - -blockquote:before { - color: #ccc; - content: open-quote; - font-size: 4em; - line-height: 0.1em; - margin-right: 0.25em; - vertical-align: -0.4em; -} - -blockquote p { - display: inline; -} +/** CSS that will be included when loading an HTML in the Document tool */ +.hidden { + display: none; +} \ No newline at end of file diff --git a/src/CoreBundle/Controller/ResourceController.php b/src/CoreBundle/Controller/ResourceController.php index 1cfcce2917..adc9dd975e 100644 --- a/src/CoreBundle/Controller/ResourceController.php +++ b/src/CoreBundle/Controller/ResourceController.php @@ -633,6 +633,7 @@ class ResourceController extends AbstractResourceController implements CourseCon + '; $content = str_replace('', $js.'', $content);