Fix some TypeScript warnings in StyleEditor