fraywing/textAngular — pull request #384 by episodeyang (2014-11-02 04:13:26+00:00)
Title: add custom indent and outdent function, to take care of lists

for elements other than lists, the default execCommand is used.

The handling of lists and the closure relationship with other tag types mine become opinionated at some point. The implementation here is mostly fine.

Note to self: There is a bug that is when outdent from `

text

sfsd

`, it becomes `

text

sfsd

`. I need to think about this a bit more since for my clients, rich formatting under `

` and `
` are important.