public function setMode(string $mode)
    {
        if (self::VISUAL === $mode) {
            $this->find('css', '#content-tmce')->press();
        } else {
            $this->find('css', '#content-html')->press();
        }
    }
public function setMode(string $mode)
    {
        if (self::VISUAL === $mode) {
            $this->find('css', '#content-tmce')->press();
        } else {
            $this->find('css', '#content-html')->press();
        }
    }
public function setMode ( string $ mode ) { if ( self :: VISUAL === $ mode ) { $ this -> find ( 'css' , '#content-tmce' ) -> press ( ) ; } else { $ this -> find ( 'css' , '#content-html' ) -> press ( ) ; } }
Sets the mode of the WYSIWYG editor.

@param string $mode VISUAL or TEXT.
Sets the mode of the WYSIWYG editor .