Bind editor by content types instead of using file extensions.

Change-Id: Iebff47fa42f6b51885a2655e9ae37218dded61dc