Find and replace functions in codemirror

Can give me sample How to use find and replace functions. … How to call them ? I only need to give the find function string and give the replace another string then replaced

That’s what this demo is for