`component_handler` is only called by the editing view, which is only displayed when already in draft mode. `preview_handler` is used by the preview student view, which is displayed in either draft or published mode, but doesn't have permissions to edit settings or content.