1
0
Fork 0
mirror of synced 2024-10-03 19:43:32 +13:00
This commit is contained in:
mike12345567 2020-10-27 13:25:12 +00:00
parent e26f272746
commit 87175e70cf

View file

@ -26,9 +26,10 @@
const position = getCaretPosition()
const toAdd = `{{ ${binding.path} }}`
if (position.start) {
value = value.substring(0, position.start)
+ toAdd
+ value.substring(position.end, value.length);
value =
value.substring(0, position.start) +
toAdd +
value.substring(position.end, value.length)
} else {
value += toAdd
}