Skip to content

Commit

Permalink
Merge pull request #423 from CenterForOpenScience/hotfix/remove-zwj-c…
Browse files Browse the repository at this point in the history
…ontenteditable-false

Use contenteditable false instead of zwj
  • Loading branch information
ichord committed Aug 23, 2016
2 parents 2a369a8 + 5374211 commit e18af47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/js/jquery.atwho.js
Expand Up @@ -825,11 +825,11 @@ EditableController = (function(superClass) {
}
suffix = (suffix = this.getOpt('suffix')) === "" ? suffix : suffix || "\u00A0";
data = $li.data('item-data');
this.query.el.removeClass('atwho-query').addClass('atwho-inserted').html(content).attr('data-atwho-at-query', "" + data['atwho-at'] + this.query.text);
this.query.el.removeClass('atwho-query').addClass('atwho-inserted').html(content).attr('data-atwho-at-query', "" + data['atwho-at'] + this.query.text).attr('contenteditable', "false");
if (range = this._getRange()) {
range.setEndAfter(this.query.el[0]);
range.collapse(false);
range.insertNode(suffixNode = this.app.document.createTextNode("\u200D" + suffix));
range.insertNode(suffixNode = this.app.document.createTextNode("" + suffix));
this._setRange('after', suffixNode, range);
}
if (!this.$inputor.is(':focus')) {
Expand Down

0 comments on commit e18af47

Please sign in to comment.