editor refactoring

editor refactoring

editor api improvements

finished editor API