Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenInTab accessibility issue #190

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:
NODE_VERSION: 20
# https://github.com/actions/runner-images/issues/70
NODE_OPTIONS: "--max_old_space_size=4096"
PNPM_VERSION: ^8.6
PNPM_VERSION: ^9.4
NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ env:
NODE_VERSION: 20
# https://github.com/actions/runner-images/issues/70
NODE_OPTIONS: "--max_old_space_size=4096"
PNPM_VERSION: ^8.6
PNPM_VERSION: ^9.4
NPM_CONFIG_@coremedia:registry: 'https://npm.coremedia.io'

jobs:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ loglevel=warn
; registry=https://registry.npmjs.org/
strict-ssl=false

link-workspace-packages=true
prefer-workspace-packages=true
enable-pre-post-scripts=true
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"engines": {
"node": "20",
"pnpm": "^8.6"
"pnpm": "^9.4"
},
"license": "Apache-2.0",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion itest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"engines": {
"node": "20",
"pnpm": "^8.6"
"pnpm": "^9.4"
},
"license": "Apache-2.0",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"engines": {
"node": "20",
"pnpm": "^8.6"
"pnpm": "^9.4"
},
"private": true,
"description": "Plugins required or recommended to use CKEditor 5 within CoreMedia Studio.",
Expand Down
7 changes: 6 additions & 1 deletion packages/ckeditor5-coremedia-content/src/OpenInTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export const openEntitiesInTabs = async (...uriPaths: string[]): Promise<OpenEnt
return emptyOpenEntitiesInTabsResult;
}
return fetchWorkAreaService().then(
(workAreaService): Promise<OpenEntitiesInTabsResult> => workAreaService.openEntitiesInTabs(uriPaths),
(workAreaService): Promise<OpenEntitiesInTabsResult> =>
workAreaService.openEntitiesInTabs(uriPaths, false, {
additionalOptions: {
focusTab: true,
},
}),
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("RichTextDataProcessor.toData", () => {
{
from: wrapView("<p></p>"),
optimalMilliseconds: 2,
gracePercentage: 5,
gracePercentage: 6,
},
],
];
Expand All @@ -272,7 +272,7 @@ describe("RichTextDataProcessor.toData", () => {
from: wrapView(generateComplexView(f).join("")),
// Only measure for no repetition.
optimalMilliseconds: f > 1 ? -1 : 30,
gracePercentage: 5,
gracePercentage: 6,
},
]);
}
Expand Down
Loading
Loading