Added tenor config to lexical editor context (#16513)

refs TryGhost/Team#2764
This commit is contained in:
Elena Baidakova 2023-03-28 11:56:52 +04:00 committed by GitHub
parent fe31898dcd
commit f40c3ae01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,8 @@ export default class KoenigLexicalEditor extends Component {
'App-Pragma': 'no-cache',
'X-Unsplash-Cache': true
}
}
},
tenor: this.config.tenor?.googleApiKey ? this.config.tenor : null
};
const useFileUpload = (type = 'image') => {