update to include texteditor pattern