Fix bug in addLineWidget.

Fixed clipping of the insertAt index.
Fix addLineWidget documentation.

Removed "pos" parameter.
Fix selecting until the start of a bidi line