A
Alex
How can I ascertain that a selection contains only complete paragraphs?
E.g, given the sample text:
123456789<para>
123456789<para>
123456789<para>
123456789<para>
123456789<para>
The selection should start at a '1' character and end either at a '<para>' paragraph mark or at a '9' character (in that case I need to automatically extend it to the immediately following paragraph mark.
Also, selecting a complete table cell should also qualify (whether it contains multiple paragraphs or even a single character).
I'd like to also test for the opposite condition: that the selection does not contain any paragraph mark (and, if it is in a table cell, it does not encompass the whole cell).
Thank you.
Best wishes,
Alex.
E.g, given the sample text:
123456789<para>
123456789<para>
123456789<para>
123456789<para>
123456789<para>
The selection should start at a '1' character and end either at a '<para>' paragraph mark or at a '9' character (in that case I need to automatically extend it to the immediately following paragraph mark.
Also, selecting a complete table cell should also qualify (whether it contains multiple paragraphs or even a single character).
I'd like to also test for the opposite condition: that the selection does not contain any paragraph mark (and, if it is in a table cell, it does not encompass the whole cell).
Thank you.
Best wishes,
Alex.