0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

Added editorEmojiPicker labs flag (#18739)

closes https://github.com/TryGhost/Product/issues/4056

- adds new flag with UI and passes it through to the editor so it can conditionally enable the relevant plugins
This commit is contained in:
Kevin Ansfield 2023-10-24 13:44:29 +01:00 committed by GitHub
parent b63c992f73
commit 125b09324c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View file

@ -17,7 +17,7 @@ const features = [{
flag: 'webmentions'
},{
title: 'Websockets',
description: 'Test out Websockets functionality at <code>/ghost/#/websockets</code>.',
description: <>Test out Websockets functionality at <code>/ghost/#/websockets</code>.</>,
flag: 'websockets'
},{
title: 'Stripe Automatic Tax',
@ -55,6 +55,10 @@ const features = [{
title: 'List-Unsubscribe header',
description: 'Set the List-Unsubscribe header in emails',
flag: 'listUnsubscribeHeader'
},{
title: 'Editor emoji picker',
description: <>Trigger an emoji picker when typing <code>{':{search}'}</code> in the editor</>,
flag: 'editorEmojiPicker'
}];
const AlphaFeatures: React.FC = () => {

View file

@ -292,7 +292,8 @@ export default class KoenigLexicalEditor extends Component {
fetchLabels,
feature: {
collectionsCard: this.feature.get('collectionsCard'),
collections: this.feature.get('collections')
collections: this.feature.get('collections'),
emojiPicker: this.feature.get('editorEmojiPicker')
},
depreciated: {
headerV1: true // if false, shows header v1 in the menu

View file

@ -77,6 +77,7 @@ export default class FeatureService extends Service {
@feature('tipsAndDonations') tipsAndDonations;
@feature('recommendations') recommendations;
@feature('lexicalIndicators') lexicalIndicators;
@feature('editorEmojiPicker') lexicalEmojiPicker;
_user = null;

View file

@ -42,7 +42,8 @@ const ALPHA_FEATURES = [
'importMemberTier',
'recommendations',
'lexicalIndicators',
'listUnsubscribeHeader'
'listUnsubscribeHeader',
'editorEmojiPicker'
];
module.exports.GA_KEYS = [...GA_FEATURES];