Skip to content

Commit eb2483a

Browse files
committed
CKEditor fix load bootstrap and chamilo styles
1 parent 3451143 commit eb2483a

File tree

1 file changed

+5
-1
lines changed
  • src/Chamilo/CoreBundle/Component/Editor/CkEditor

1 file changed

+5
-1
lines changed

src/Chamilo/CoreBundle/Component/Editor/CkEditor/CkEditor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ public function createHtml()
5555
public function createHtmlStyle()
5656
{
5757
$style = '';
58-
if (trim($this->value) == '<html><head><title></title></head><body></body></html>' || $this->value == '') {
58+
59+
if (trim($this->value) == '<html><head><title></title></head><body></body></html>' ||
60+
trim($this->value) == '<!DOCTYPE html><html><head><title></title></head><body></body></html>' ||
61+
$this->value == ''
62+
) {
5963
$style = api_get_css_asset('bootstrap/dist/css/bootstrap.min.css');
6064
$style .= api_get_css_asset('fontawesome/css/font-awesome.min.css');
6165
$style .= api_get_css(ChamiloApi::getEditorDocStylePath());

0 commit comments

Comments
 (0)