Do we have collapse and undocollapse option in the editor

Do we have collapse and undocollapse option in the editor for editing text