China editor resigns over media censorship