Set up pan gesture recognizer hierarchy on text editor