EpicEditor icon indicating copy to clipboard operation
EpicEditor copied to clipboard

Remember indentation

Open OscarGodson opened this issue 14 years ago • 3 comments

This is super useful for writing code. I.e.

If i type (where the pipe is the cursor):

if(){
  alert() |
}

and press enter it should appear in line with the alert() like

if(){
  alert()
  |
}

OscarGodson avatar Mar 05 '12 19:03 OscarGodson

From @janlimpens in #104

Hitting enter again, should "outdent" by one level. It might also be good to be able to use the tab key to insert 2 spaces, but this might break UI Accessibility guidelines.

OscarGodson avatar May 11 '12 15:05 OscarGodson

is this also supposed to work on stuff like lists, blockquotes and so on?

fuddl avatar Aug 21 '12 09:08 fuddl

Yeah. The editor doesn't know what kind of text you're writing. Once you press tab it will keep that indent until you outdent.

OscarGodson avatar Aug 21 '12 14:08 OscarGodson