Skip to content

Commit

Permalink
Changed special character, used to set cursor out of inserted mention.
Browse files Browse the repository at this point in the history
…Closes ivirabyan#23

Previously used character '\uFEFF' is not working properly in some fonts,
so '\u200B' was used instead. Putting this character is a standard hack to
put cursor out of the inserted node.
See http://stackoverflow.com/questions/21574522/contenteditable-put-caret-outside-inserted-span
  • Loading branch information
ivirabyan committed Jun 25, 2015
1 parent d930934 commit 815c026
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.mentions.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ $.widget( "ui.editablecomplete", $.ui.areacomplete,


class MentionsBase
marker: '\uFEFF',
marker: '\u200B',

constructor: (@input, options) ->
@options = $.extend({}, @settings, options)
Expand Down
2 changes: 1 addition & 1 deletion jquery.mentions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 815c026

Please sign in to comment.