Converts editor into a local component