N°1164, SF#1491: Add code snippets with syntax highlighting to CaseLog/HTML fields

This commit is contained in:
Stephen Abello
2019-05-17 15:59:01 +02:00
parent af332a34d6
commit e9119e95ac
114 changed files with 7578 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ class ConsoleSimpleFieldRenderer extends FieldRenderer
$oOutput->AddJs(
<<<EOF
$('#{$this->oField->GetGlobalId()}').addClass('htmlEditor');
$('#{$this->oField->GetGlobalId()}').ckeditor(function(){}, {language: '$sEditorLanguage', contentsLanguage: '$sEditorLanguage'});
$('#{$this->oField->GetGlobalId()}').ckeditor(function(){}, {language: '$sEditorLanguage', contentsLanguage: '$sEditorLanguage', extraPlugins: 'codesnippet'});
EOF
);
if (($this->oField->GetObject() !== null) && ($this->oField->GetTransactionId() !== null))
@@ -384,4 +384,4 @@ EOF
return $oOutput;
}
}
}