Skip to content

Commit

Permalink
Add menu bar integration to export pdf. (#15970)
Browse files Browse the repository at this point in the history
Internal (ui): Added menu bar integration for export to PDF. Related to #15894, cksource/ckeditor5-commercial#6058.
  • Loading branch information
mremiszewski authored Mar 7, 2024
1 parent e1d77c1 commit abe965b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@
min-width: var(--ck-menu-bar-menu-item-min-width);
}

& > .ck-spinner-container,
& > .ck-spinner-container .ck-spinner {
/* These styles correspond to .ck-icon so that the spinner seamlessly replaces the icon. */
--ck-toolbar-spinner-size: 20px;
}

& > .ck-spinner-container {
/* These margins are the same as for .ck-icon. */
margin-left: calc(-1 * var(--ck-spacing-small));
margin-right: var(--ck-spacing-small);
}

/*
* Hovered items automatically get focused. Default focus styles look odd
* while moving across a huge list of items so let's get rid of them
Expand Down
7 changes: 7 additions & 0 deletions packages/ckeditor5-ui/src/menubar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ export const MenuBarMenuViewPanelPositioningFunctions: Record<string, Positionin
* It contains names of all UI components available in the project.
*/
export const DefaultMenuBarConfig: MenuBarConfig = [
{
id: 'file',
label: 'File',
items: [
'menuBar:exportPdf'
]
},
{
id: 'edit',
label: 'Edit',
Expand Down

0 comments on commit abe965b

Please sign in to comment.