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:
parent
2e1a756213
commit
682e051840
4 changed files with 22 additions and 3 deletions
|
@ -18,7 +18,8 @@ module.exports = {
|
|||
'mailgunIsConfigured',
|
||||
'emailAnalytics',
|
||||
'hostSettings',
|
||||
'tenor'
|
||||
'tenor',
|
||||
'editor'
|
||||
];
|
||||
|
||||
frame.response = {
|
||||
|
|
|
@ -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') : '';
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue