Use $.debounce in place of delay function in editor module

Change-Id: If8d94a14ab30eedd482a7fdbe3b23c1836e12838
Merge "Use $.debounce in place of delay function in editor module"