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:
Stephen Abello
2024-04-18 14:45:40 +02:00
parent c56aeb08f5
commit 62f5f2c942
9 changed files with 100 additions and 7 deletions

View File

@@ -68,6 +68,9 @@ class RichText extends UIBlock
public function SetValue(?string $sValue)
{
$this->sValue = $sValue;
if(is_array($this->aConfig)) {
$this->aConfig['detectChanges'] = ['initialValue' => $sValue];
}
return $this;
}