Add assertion for editor id.
Doc fix.
Minor refactor.