mirror of
https://github.com/flarum/core.git
synced 2025-08-08 01:16:52 +02:00
Add composer mount to ForumApplication
This commit is contained in:
committed by
Franz Liedke
parent
91609b8a71
commit
57b85f501a
@@ -76,7 +76,7 @@ export default class ForumApplication extends Application {
|
||||
/*
|
||||
* An object which controls the state of the composer.
|
||||
*/
|
||||
// composer = new ComposerState();
|
||||
composer = new ComposerState();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
@@ -119,7 +119,7 @@ export default class ForumApplication extends Application {
|
||||
m.mount(document.getElementById('header-navigation'), Navigation);
|
||||
m.mount(document.getElementById('header-primary'), HeaderPrimary);
|
||||
m.mount(document.getElementById('header-secondary'), HeaderSecondary);
|
||||
// m.mount(document.getElementById('composer'), Composer.component({ state: this.composer }));
|
||||
m.mount(document.getElementById('composer'), { view: () => Composer.component({ state: this.composer }) });
|
||||
|
||||
// this.pane = new Pane(document.getElementById('app'));
|
||||
|
||||
|
Reference in New Issue
Block a user