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:
cpradio
2017-02-27 07:32:09 -05:00
parent 38d7234018
commit 59922a7899
5 changed files with 50 additions and 88 deletions

View File

@ -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,