diff --git a/css/backoffice/vendors/_all.scss b/css/backoffice/vendors/_all.scss index acb8fcbc3..bdd9d0859 100644 --- a/css/backoffice/vendors/_all.scss +++ b/css/backoffice/vendors/_all.scss @@ -17,4 +17,5 @@ */ @import "bulma-variables-overload"; -@import "../../../node_modules/bulma-scss/bulma"; \ No newline at end of file +@import "../../../node_modules/bulma-scss/bulma"; +@import "ckeditor"; \ No newline at end of file diff --git a/css/backoffice/vendors/_ckeditor.scss b/css/backoffice/vendors/_ckeditor.scss new file mode 100644 index 000000000..5e4052ada --- /dev/null +++ b/css/backoffice/vendors/_ckeditor.scss @@ -0,0 +1,11 @@ +/*! + * @copyright Copyright (C) 2010-2020 Combodo SARL + * @license http://opensource.org/licenses/AGPL-3.0 + */ + +.hljs { + padding: 0.9em !important; + box-shadow: 0 0px 3px 2px inset rgba(0, 0, 0, 0.4); + border-radius: $ibo-border-radius-300; + white-space: pre-wrap; +} \ No newline at end of file diff --git a/css/light-grey.scss b/css/light-grey.scss index 0669cdc17..9e9e37d34 100644 --- a/css/light-grey.scss +++ b/css/light-grey.scss @@ -422,11 +422,11 @@ display: none; } - .hljs { - padding: 0.9em !important; - box-shadow: 0 0px 3px 2px inset rgba(0, 0, 0, 0.4); - border-radius: 3px; - } + //.hljs { + // padding: 0.9em !important; + // box-shadow: 0 0px 3px 2px inset rgba(0, 0, 0, 0.4); + // border-radius: 3px; + //} td a.no-arrow, td a.no-arrow:visited, .SearchDrawer a.no-arrow, .SearchDrawer a.no-arrow:visited { text-decoration: none; diff --git a/sources/Renderer/Bootstrap/FieldRenderer/BsSimpleFieldRenderer.php b/sources/Renderer/Bootstrap/FieldRenderer/BsSimpleFieldRenderer.php index 043d3cdd6..8edde1a19 100644 --- a/sources/Renderer/Bootstrap/FieldRenderer/BsSimpleFieldRenderer.php +++ b/sources/Renderer/Bootstrap/FieldRenderer/BsSimpleFieldRenderer.php @@ -145,14 +145,6 @@ EOF // Then the previous entries if necessary if ($sFieldClass === 'Combodo\\iTop\\Form\\Field\\CaseLogField') { $this->PreparingCaseLogEntries($oOutput); - // Trigger highlighter for all code blocks in this caselog - $oOutput->AddJs( - << pre").each(function(i, block) { - hljs.highlightBlock(block); - }); -JS - ); } $oOutput->AddHtml(''); @@ -338,14 +330,6 @@ EOF $oOutput->AddHtml('
'); $oOutput->AddHtml('
')->AddHtml($this->oField->GetDisplayValue(), false)->AddHtml('
'); $oOutput->AddHtml('
'); - // Trigger highlighter for all code blocks in this html text field - $oOutput->AddJs( - <<