├── spec ├── helpers │ └── noConflict.js ├── javascripts │ ├── fixtures │ │ ├── inputors.html │ │ └── json │ │ │ └── data.json │ ├── iframe.spec.coffee │ ├── content_editable.spec.coffee │ ├── view.spec.coffee │ ├── apis.spec.coffee │ ├── custom_callbacks.spec.coffee │ ├── events.spec.coffee │ ├── settings.spec.coffee │ └── default_callbacks.spec.coffee └── spec_helper.coffee ├── .gitignore ├── .codoopts ├── examples ├── cross_document │ ├── viewFrame.html │ ├── dataFrame.html │ └── index.html ├── style.css ├── ueditor.html ├── medium-editor.html ├── tinyMCE.html └── hashtags.html ├── .travis.yml ├── umd.template.js ├── bower.json ├── component.json ├── dist ├── css │ ├── jquery.atwho.min.css │ └── jquery.atwho.css └── js │ ├── jquery.atwho.min.js │ └── jquery.atwho.js ├── LICENSE-MIT ├── package.json ├── src ├── jquery.atwho.css ├── api.coffee ├── model.coffee ├── textareaController.coffee ├── view.coffee ├── controller.coffee ├── default.coffee ├── app.coffee └── editableController.coffee ├── CONTRIBUTING.md ├── specRunner.html ├── README.md ├── gulpfile.js ├── index.html └── CHANGELOG.md /spec/helpers/noConflict.js: -------------------------------------------------------------------------------- 1 | jQuery.noConflict(); -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | .DS_Store 3 | doc/ 4 | node_modules/ 5 | _* 6 | bower_components/ 7 | components 8 | .grunt 9 | *.log 10 | build/ 11 | -------------------------------------------------------------------------------- /.codoopts: -------------------------------------------------------------------------------- 1 | --name "Codo" 2 | --readme README.md 3 | --title "At.js Documentation" 4 | --private 5 | --quiet 6 | --output-dir ./doc 7 | ./src 8 | - 9 | LICENSE 10 | CHANGELOG.md 11 | -------------------------------------------------------------------------------- /examples/cross_document/viewFrame.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |hello!
9 | 10 | 11 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "4" 4 | notifications: 5 | email: 6 | on_success: never # default: change 7 | on_failure: change # default: always 8 | branches: 9 | only: 10 | - master 11 | - stable 12 | - beta 13 | before_script: 14 | - npm install -g gulp 15 | - npm install -g bower 16 | - bower install 17 | -------------------------------------------------------------------------------- /umd.template.js: -------------------------------------------------------------------------------- 1 | (function (root, factory) { 2 | if (typeof define === 'function' && define.amd) { 3 | // AMD. Register as an anonymous module unless amdModuleId is set 4 | define(["jquery"], function (a0) { 5 | return (factory(a0)); 6 | }); 7 | } else if (typeof exports === 'object') { 8 | // Node. Does not work with strict CommonJS, but 9 | // only CommonJS-like environments that support module.exports, 10 | // like Node. 11 | module.exports = factory(require("jquery")); 12 | } else { 13 | factory(jQuery); 14 | } 15 | }(this, function ($) { 16 | <%= contents %> 17 | })); 18 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "At.js", 3 | "version": "1.5.7", 4 | "main": [ 5 | "dist/js/jquery.atwho.js", 6 | "dist/css/jquery.atwho.css" 7 | ], 8 | "ignore": [ 9 | "**/.*", 10 | "node_modules", 11 | "components", 12 | "libs", 13 | "spec" 14 | ], 15 | "dependencies": { 16 | "jquery": ">=1.7.0", 17 | "Caret.js": "~0.2.2" 18 | }, 19 | "devDependencies": { 20 | "jasmine-jquery": "~2.0.2" 21 | }, 22 | "keywords": [ 23 | "mention", 24 | "mentions", 25 | "autocomplete", 26 | "autocompletion", 27 | "autosuggest", 28 | "autosuggestion", 29 | "atjs", 30 | "at.js" 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "At.js", 3 | "repo": "ichord/At.js", 4 | "description": "Add Github like mentions autocomplete to your application.", 5 | "version": "1.5.7", 6 | "demo": "http://ichord.github.com/At.js", 7 | "dependencies": { 8 | "ichord/Caret.js": "~0.2.2", 9 | "component/jquery": ">= 1.7.0" 10 | }, 11 | "main": [ 12 | "dist/js/jquery.atwho.js" 13 | ], 14 | "scripts": [ 15 | "dist/js/jquery.atwho.js" 16 | ], 17 | "styles": [ 18 | "dist/css/jquery.atwho.css" 19 | ], 20 | "license": "MIT", 21 | "keywords": [ 22 | "mentions", 23 | "ui", 24 | "mentions", 25 | "autocomplete", 26 | "autocompletion", 27 | "autosuggest", 28 | "autosuggestion", 29 | "atjs", 30 | "at.js" 31 | ] 32 | } -------------------------------------------------------------------------------- /spec/javascripts/fixtures/inputors.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 13 | 14 | 17 | 18 |
181 | And!! it support ContentEditable mode too!!
182 |
183 |
184 |
185 |
187 | Try here now!
188 | :h
189 |