Make use of the save value in WysiwygFormField
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Sep 2023 12:01:19 +0000 (14:01 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Sep 2023 12:01:19 +0000 (14:01 +0200)
see 122d9d4ab574a8025fac3c556d40906a7e44ce54

wcfsetup/install/files/lib/system/form/builder/field/wysiwyg/WysiwygFormField.class.php

index 76d8c2ea42ee025ce7ac8a473bdbfedd37751f3d..6648293e7a7a942e4127cbd84e402d7eda0f5ada 100644 (file)
@@ -201,9 +201,9 @@ final class WysiwygFormField extends AbstractFormField implements
     /**
      * @inheritDoc
      */
-    public function hasSaveValue()
+    public function getSaveValue()
     {
-        return false;
+        return $this->htmlInputProcessor->getHtml();
     }
 
     /**
@@ -230,7 +230,6 @@ final class WysiwygFormField extends AbstractFormField implements
             'wysiwyg',
             function (IFormDocument $document, array $parameters) {
                 if ($this->checkDependencies()) {
-                    $parameters['data'][$this->getObjectProperty()] = $this->htmlInputProcessor->getHtml();
                     $parameters[$this->getObjectProperty() . '_htmlInputProcessor'] = $this->htmlInputProcessor;
                 }