Fixes select-extension bug in firefox

This fixes the firefox bug, for the select extension.

All I am doing is checking whether the event.target is within my editable element.

This is required for the select extension