public function setContent(string $content)
    {
        if (self::VISUAL === $this->getMode()) {
            $this->getDriver()->switchToIFrame(self::$wysiwyg_iframe_id);
            $this->getDriver()->executeScript(
                ';document.body.innerHTML = \'<p>' . addslashes(htmlspecialchars($content)) . '</p>\';'
            );
            $this->getDriver()->switchToIFrame();
        } else {
            $this->fillField(self::$textarea_id, $content);
        }
    }
public function setContent(string $content)
    {
        if (self::VISUAL === $this->getMode()) {
            $this->getDriver()->switchToIFrame(self::$wysiwyg_iframe_id);
            $this->getDriver()->executeScript(
                ';document.body.innerHTML = \'<p>' . addslashes(htmlspecialchars($content)) . '</p>\';'
            );
            $this->getDriver()->switchToIFrame();
        } else {
            $this->fillField(self::$textarea_id, $content);
        }
    }
public function setContent ( string $ content ) { if ( self :: VISUAL === $ this -> getMode ( ) ) { $ this -> getDriver ( ) -> switchToIFrame ( self :: $ wysiwyg_iframe_id ) ; $ this -> getDriver ( ) -> executeScript ( ';document.body.innerHTML = \'<p>' . addslashes ( htmlspecialchars ( $ content ) ) . '</p>\';' ) ; $ this -> getDriver ( ) -> switchToIFrame ( ) ; } else { $ this -> fillField ( self :: $ textarea_id , $ content ) ; } }
Enter the given content into the WYSIWYG editor

@param string $content The content being entered
Enter the given content into the WYSIWYG editor