0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Reverted "Disabled image editor setting check"

This reverts commit 9d9e296148.

This commit was a temporary fix to load the image editor if the setting was disabled.
This commit is contained in:
Rishabh 2023-06-07 02:10:02 +05:30
parent 80ed948bb9
commit 71e5d708d4
2 changed files with 12 additions and 0 deletions

View file

@ -19,10 +19,16 @@ export default class KoenigImageEditor extends Component {
}
get pinturaJsUrl() {
if (!this.settings.pintura) {
return null;
}
return this.config.pintura?.js || this.settings.pinturaJsUrl;
}
get pinturaCSSUrl() {
if (!this.settings.pintura) {
return null;
}
return this.config.pintura?.css || this.settings.pinturaCssUrl;
}

View file

@ -135,10 +135,16 @@ export default class KoenigLexicalEditor extends Component {
offers = null;
get pinturaJsUrl() {
if (!this.settings.pintura) {
return null;
}
return this.config.pintura?.js || this.settings.pinturaJsUrl;
}
get pinturaCSSUrl() {
if (!this.settings.pintura) {
return null;
}
return this.config.pintura?.css || this.settings.pinturaCssUrl;
}