mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°5298 -When opening CKEditor4 data with CKEditor5, if no change has been made return initial data instead of transformed data
This commit is contained in:
@@ -2326,6 +2326,7 @@ JS
|
||||
// b) or override some of the configuration settings, using the second parameter of ckeditor()
|
||||
$aConfig = CKEditorHelper::GetCkeditorPref();
|
||||
$aConfig['placeholder'] = Dict::S('UI:CaseLogTypeYourTextHere');
|
||||
$aConfig['detectChanges'] = ['initialValue' => $sOriginalValue];
|
||||
|
||||
// - Final config
|
||||
$sConfigJS = json_encode($aConfig);
|
||||
|
||||
@@ -87,7 +87,7 @@ class UIHTMLEditorWidget
|
||||
if ($sHeightSpec != '') {
|
||||
$aConfig['height'] = $sHeightSpec;
|
||||
}
|
||||
// TODO 3.2.0 Add the configuration for the editor
|
||||
$aConfig['detectChanges'] = ['initialValue' => $sValue];
|
||||
$sConfigJS = json_encode($aConfig);
|
||||
|
||||
WebResourcesHelper::EnableCKEditorToWebPage($oPage);
|
||||
|
||||
Reference in New Issue
Block a user