mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
refactor: Create compose_textarea and extracted related handlers from ui.js.
Created the new `compose_textarea` and moved event handlers for `#compose_textarea` from `ui` to this new module so that it is now responsible for initializing event handlers for compose_textarea instead of `ui` module.
This commit is contained in:
@@ -24,6 +24,7 @@ import * as compose from "./compose";
|
||||
import * as compose_closed_ui from "./compose_closed_ui";
|
||||
import * as compose_pm_pill from "./compose_pm_pill";
|
||||
import * as compose_recipient from "./compose_recipient";
|
||||
import * as compose_textarea from "./compose_textarea";
|
||||
import * as composebox_typeahead from "./composebox_typeahead";
|
||||
import * as condense from "./condense";
|
||||
import * as copy_and_paste from "./copy_and_paste";
|
||||
@@ -668,6 +669,7 @@ export function initialize_everything() {
|
||||
realm_playground.initialize(page_params.realm_playgrounds, generated_pygments_data);
|
||||
compose.initialize();
|
||||
composebox_typeahead.initialize(); // Must happen after compose.initialize()
|
||||
compose_textarea.initialize();
|
||||
search.initialize();
|
||||
tutorial.initialize();
|
||||
notifications.initialize();
|
||||
@@ -694,7 +696,6 @@ export function initialize_everything() {
|
||||
drafts.initialize();
|
||||
sent_messages.initialize();
|
||||
hotspots.initialize();
|
||||
ui.initialize();
|
||||
typing.initialize();
|
||||
starred_messages.initialize();
|
||||
user_status_ui.initialize();
|
||||
|
||||
Reference in New Issue
Block a user