Before inserting the text.
After inserting the text.