mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added uploadUrl
props to React component (#15208)
no issue - passes `uploadUrl` to React component as a prop.
This commit is contained in:
parent
e000c6cca6
commit
0a03164fe4
3 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,7 @@
|
|||
@mobiledoc={{@body}}
|
||||
@didCreateEditor={{this.onEditorCreated}}
|
||||
@onChange={{@onBodyChange}}
|
||||
@uploadUrl={{this.uploadUrl}}
|
||||
/>
|
||||
|
||||
{{!-- <KoenigEditor
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import Component from '@glimmer/component';
|
||||
import ghostPaths from 'ghost-admin/utils/ghost-paths';
|
||||
import {action} from '@ember/object';
|
||||
import {tracked} from '@glimmer/tracking';
|
||||
|
||||
|
@ -7,6 +8,7 @@ export default class GhKoenigEditorReactComponent extends Component {
|
|||
titleElement = null;
|
||||
koenigEditor = null;
|
||||
mousedownY = 0;
|
||||
uploadUrl = `${ghostPaths().apiRoot}/images/upload/`;
|
||||
|
||||
@tracked titleIsHovered = false;
|
||||
@tracked titleIsFocused = false;
|
||||
|
|
|
@ -87,6 +87,7 @@ export default class KoenigReactEditor extends Component {
|
|||
mobiledoc={this.args.mobiledoc}
|
||||
didCreateEditor={this.args.didCreateEditor}
|
||||
onChange={this.args.onChange}
|
||||
uploadUrl={this.args.uploadUrl}
|
||||
/>
|
||||
</Suspense>
|
||||
</ErrorHandler>
|
||||
|
|
Loading…
Add table
Reference in a new issue