Currently we can only edit single word or phrase located at one single line. If it spans over multiple lines we can't do anything.
Solving this involves a lot of playing around with https://developer.mozilla.org/en-US/docs/Web/API/range and measurements.