fixed replace and find text in contenteditable div's

Signed-off-by: Divyesh Purohit <purohit.div@gmail.com>