First draft of Editor API