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

Added editor.url config (#15045)

no issue

- used for an ongoing react based editor experiment
- by exposing `editor.url` in public config it lets Admin dynamically fetch the external module and allows for independent releases of the editor without needing to have a full Ghost release
- follows the same pattern as portal and comments
This commit is contained in:
Kevin Ansfield 2022-07-19 14:23:29 +01:00 committed by GitHub
parent 2e1a756213
commit 682e051840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 3 deletions

View file

@ -18,7 +18,8 @@ module.exports = {
'mailgunIsConfigured',
'emailAnalytics',
'hostSettings',
'tenor'
'tenor',
'editor'
];
frame.response = {

View file

@ -18,7 +18,8 @@ module.exports = function getConfigProperties() {
mailgunIsConfigured: !!(config.get('bulkEmail') && config.get('bulkEmail').mailgun),
emailAnalytics: config.get('emailAnalytics'),
hostSettings: config.get('hostSettings'),
tenor: config.get('tenor')
tenor: config.get('tenor'),
editor: config.get('editor')
};
const billingUrl = config.get('hostSettings:billing:enabled') ? config.get('hostSettings:billing:url') : '';

View file

@ -140,6 +140,9 @@
"url": "https://unpkg.com/@tryghost/sodo-search@~1.0.0/umd/sodo-search.min.js",
"version": "1.0.0"
},
"editor": {
"url": ""
},
"tenor": {
"publicReadOnlyApiKey": null,
"contentFilter": "off"

View file

@ -28,7 +28,21 @@ const expectedProperties = {
action: ['id', 'resource_type', 'actor_type', 'event', 'created_at', 'actor'],
config: ['version', 'environment', 'database', 'mail', 'labs', 'clientExtensions', 'enableDeveloperExperiments', 'useGravatar', 'stripeDirect', 'emailAnalytics', 'tenor', 'mailgunIsConfigured'],
config: [
'version',
'environment',
'database',
'mail',
'labs',
'clientExtensions',
'enableDeveloperExperiments',
'useGravatar',
'stripeDirect',
'emailAnalytics',
'tenor',
'mailgunIsConfigured',
'editor'
],
post: [
'id',