mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Don't directly change TextEditor styles
This commit is contained in:
@@ -16,7 +16,7 @@ export default function addComposerAutocomplete() {
|
|||||||
const composer = this;
|
const composer = this;
|
||||||
const $container = $('<div class="ComposerBody-mentionsDropdownContainer"></div>');
|
const $container = $('<div class="ComposerBody-mentionsDropdownContainer"></div>');
|
||||||
const dropdown = new AutocompleteDropdown({items: []});
|
const dropdown = new AutocompleteDropdown({items: []});
|
||||||
const $textarea = this.$('textarea');
|
const $textarea = this.$('textarea').wrap('<div class="ComposerBody-mentionsWrapper"></div>');
|
||||||
const searched = [];
|
const searched = [];
|
||||||
let mentionStart;
|
let mentionStart;
|
||||||
let typed;
|
let typed;
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.TextEditor {
|
.ComposerBody-mentionsWrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.MentionsDropdown {
|
.MentionsDropdown {
|
||||||
|
Reference in New Issue
Block a user