ownsDocument == (registries != null), "Can only set registries on owned documents");
this.registries = registries;
this.keyBindings = bindings;
this.settings = settings;
eventHandler = new EditorEventHandler(
new EditorInteractorImpl(), eventsSubHandler, NodeEventRouter.INSTANCE,
settings.useWhitelistInEditor(), settings.useWebkitCompositionEvents());
setEditing(false);
}