mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 20:41:11 +08:00
Extract autocomplete initialization to a function
Create a REGEXP_TAGS_REPLACE regex to remove a chained .replace call Fix autocomplete positioning
This commit is contained in:
@ -247,6 +247,13 @@ export default function(options) {
|
||||
};
|
||||
vOffset = -32;
|
||||
hOffset = 0;
|
||||
} if (options.treatAsTextarea) {
|
||||
pos = me.caretPosition({
|
||||
pos: completeStart,
|
||||
key: options.key
|
||||
});
|
||||
hOffset = 27;
|
||||
vOffset = -32;
|
||||
} else {
|
||||
pos = me.caretPosition({
|
||||
pos: completeStart,
|
||||
|
Reference in New Issue
Block a user