diff --git a/packages/ckeditor5-coremedia-content/src/OpenInTab.ts b/packages/ckeditor5-coremedia-content/src/OpenInTab.ts index d8b282ad13..7ab9a79fb7 100644 --- a/packages/ckeditor5-coremedia-content/src/OpenInTab.ts +++ b/packages/ckeditor5-coremedia-content/src/OpenInTab.ts @@ -62,6 +62,11 @@ export const openEntitiesInTabs = async (...uriPaths: string[]): Promise => workAreaService.openEntitiesInTabs(uriPaths), + (workAreaService): Promise => + workAreaService.openEntitiesInTabs(uriPaths, false, { + additionalOptions: { + focusTab: true, + }, + }), ); }; diff --git a/packages/ckeditor5-coremedia-link/src/contentlink/LinkUserActionsPlugin.ts b/packages/ckeditor5-coremedia-link/src/contentlink/LinkUserActionsPlugin.ts index d201d9e89d..69d304068d 100644 --- a/packages/ckeditor5-coremedia-link/src/contentlink/LinkUserActionsPlugin.ts +++ b/packages/ckeditor5-coremedia-link/src/contentlink/LinkUserActionsPlugin.ts @@ -198,7 +198,13 @@ export default class LinkUserActionsPlugin extends Plugin { #openInWorkAreaTab(uri: string): void { serviceAgent .fetchService(createWorkAreaServiceDescriptor()) - .then((workAreaService) => workAreaService.openEntitiesInTabs([requireContentUriPath(uri)])) + .then((workAreaService) => + workAreaService.openEntitiesInTabs([requireContentUriPath(uri)], false, { + additionalOptions: { + focusTab: true, + }, + }), + ) .catch((reason) => { LinkUserActionsPlugin.LOG.warn(reason); });