Improve editable.getContent()

Allow to pass in document fragments. The idea is to make it easier to work with the document fragments that are returned by `cursor.before()` and `cursor.after()`. The split event also passes a `before` and `after` document fragment.