N°7552 - Polishing CKeditor (maximized mode, focus impossible if editor in a modal)

Fullscreen mode for portal (native browser method)
Windowed mode for console (JS method)
portal.css not minified
This commit is contained in:
jf-cbd
2024-06-13 10:31:42 +02:00
parent b8a9ea452f
commit b8c4be7a3d
7 changed files with 1898 additions and 15 deletions

View File

@@ -176,7 +176,9 @@ EOF
if ($bRichEditor) {
// Enable CKEditor
CKEditorHelper::ConfigureCKEditorElementForRenderingOutput($oOutput, $this->oField->GetGlobalId(), $this->oField->GetCurrentValue(), false, false);
CKEditorHelper::ConfigureCKEditorElementForRenderingOutput($oOutput, $this->oField->GetGlobalId(), $this->oField->GetCurrentValue(), false, false, ['maximize' => [
'fullscreen' => 'native'
]]);
if (($this->oField->GetObject() !== null) && ($this->oField->GetTransactionId() !== null)) {
$oOutput->AddJs(InlineImage::EnableCKEditorImageUpload($this->oField->GetObject(), utils::GetUploadTempId($this->oField->GetTransactionId())));