endpoint_a and endpoint_b now refer to the textarea not the paragraph