Skip to content

Added soft wrap option to editor

What does this MR do?

Adds a Soft wrap button to the editor, when clicked, it wraps the text in the editor and changes to No wrap, then when clicked, it unwraps the text in the editor.

This will also detect files with no extension, .txt or .md and proactively set the soft wrap. Unless, you explicitly toggle the soft wrap, then it will stop checking the file path and will stay with the users explicit preference.

Are there points in the code the reviewer needs to double check?

We should talk about the .txt and .md thing, I'm not sure if its a good approach.

Why was this MR needed?

Screenshots (if relevant)

https://youtu.be/8LW5nQsraSM

No wrap

Screen_Shot_2016-09-02_at_19.54.54

Soft wrap

Screen_Shot_2016-09-02_at_19.54.45

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #18297 (closed)

Merge request reports