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:
parent
80ed948bb9
commit
71e5d708d4
2 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue