Fixed editor button event listeners.

Change-Id: Ibbfcfc6fc2d21c4253ac7b23bbb7bdf4ba5c6662