add debouncing to prismeditor