Support editing layers. [ci skip]