Fix firefox issues with editor