Adds search functionality to the editor