Skip to content

Commit

Permalink
Removed sticker option from Pintura (TryGhost#18497)
Browse files Browse the repository at this point in the history
Removed the sticker feature from the image editor component in both the
new and the legacy admin apps. This simplifies the UI and the code of
the `usePinturaEditor.ts` and `koenig-image-editor.js` files.
  • Loading branch information
55sketch authored Oct 5, 2023
1 parent 1b5359d commit d454f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions apps/admin-x-settings/src/hooks/usePinturaEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ declare global {
enableTransparencyGrid: boolean;
util: string;
utils: string[];
stickerStickToImage: boolean;
frameOptions: [FrameOptionType, (locale: PinturaLocale) => string][];
cropSelectPresetFilter: string;
cropSelectPresetOptions: [number | undefined, string][];
Expand Down Expand Up @@ -164,10 +163,8 @@ export default function usePinturaEditor({
'redact',
'annotate',
'trim',
'frame',
'sticker'
'frame'
],
stickerStickToImage: true,
frameOptions: [
// No frame
[undefined, locale => locale.labelNone],
Expand Down
4 changes: 1 addition & 3 deletions ghost/admin/app/components/koenig-image-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ export default class KoenigImageEditor extends Component {
'redact',
'annotate',
'trim',
'frame',
'sticker'
'frame'
],
stickerStickToImage: true,
frameOptions: [
// No frame
[undefined, locale => locale.labelNone],
Expand Down

0 comments on commit d454f18

Please sign in to comment.