Revert "Change setExtraSelections interface"

This reverts commit 3f59dfcbb0edd9951e1f11a4b5f7234dc3ebf3ee.
Cache toPlainText()