also, most of this code is similar to the other `getContent` method, except the "concatenate text" part; I'm sure it's possible to have a `getTextFromContentEditable` method that would factorize this, taking a `textConcatenatorFunction` as parameter for example.