updated editor api