Skip to content
This repository has been archived by the owner on Jun 24, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
ref: set cursor between quotes
  • Loading branch information
Christian Kruse committed Feb 11, 2017
1 parent db12dd1 commit 88633d0
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions app/assets/javascripts/auto/mentions.js
Expand Up @@ -46,7 +46,7 @@ cforum.mentions = function(elem) {

switch(term) {
case '"':
found = ['„“', '‚‘'];
found = ['""', '„“', '‚‘'];
break;
case '...':
found = ['…'];
Expand Down Expand Up @@ -94,7 +94,18 @@ cforum.mentions = function(elem) {

callback(found);
},
replace: function(text) { return text; }
replace: function(text) {
switch(text) {
case '""':
return ['"', '"'];
case '„“':
return ['„', '“'];
case '‚‘':
return ['‚', '‘'];
}

return text;
}
}
], { maxCount: 750 })
.on("textComplete:render", function(ev, menu) {
Expand Down

0 comments on commit 88633d0

Please sign in to comment.