public function iSelectPostContentEditorMode(string $mode)
    {
        $content_editor = $this->edit_post_page->getContentEditor();
        $content_editor->setMode(strtoupper($mode));
    }
public function iSelectPostContentEditorMode(string $mode)
    {
        $content_editor = $this->edit_post_page->getContentEditor();
        $content_editor->setMode(strtoupper($mode));
    }
public function iSelectPostContentEditorMode ( string $ mode ) { $ content_editor = $ this -> edit_post_page -> getContentEditor ( ) ; $ content_editor -> setMode ( strtoupper ( $ mode ) ) ; }
Switch the mode of the post content editor.

Example: When I switch to the post content editor's Visual mode
Example: When I switch to the post content editor's Text mode

@When /^I switch to the post content editor's (visual|text) mode$/i

@param string $mode The mode (visual or text) to switch to in the editor.
Switch the mode of the post content editor .