diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-31 12:28:22 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-10-31 12:28:22 +0100 |
commit | 4b24dea6c725869f6994452af9d81b96fe4f05dd (patch) | |
tree | 5821af13a19f167543addcac0fbac144fd320eac /apps/comments/js/vendor/Caret.js/README.md | |
parent | d5f1cef6420c7450ce960f469fd10557ea8fcdd9 (diff) | |
download | nextcloud-server-4b24dea6c725869f6994452af9d81b96fe4f05dd.tar.gz nextcloud-server-4b24dea6c725869f6994452af9d81b96fe4f05dd.zip |
only ship minimized js files
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/comments/js/vendor/Caret.js/README.md')
-rw-r--r-- | apps/comments/js/vendor/Caret.js/README.md | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/apps/comments/js/vendor/Caret.js/README.md b/apps/comments/js/vendor/Caret.js/README.md deleted file mode 100644 index ececb2cc2fe..00000000000 --- a/apps/comments/js/vendor/Caret.js/README.md +++ /dev/null @@ -1,54 +0,0 @@ -Caret.js -======== - -Get caret postion or offset from inputor - -This is the core function that working in [At.js](http://ichord.github.com/At.js). -Now, It just become an simple jquery plugin so that everybody can use it. -And, of course, **At.js** is using this plugin too. - -* support iframe context - -Live Demo -========= - -http://ichord.github.com/Caret.js/ - - -Usage -===== - -```javascript - -// Get caret position -$('#inputor').caret('position'); // => {left: 15, top: 30, height: 20} - -// Get caret offset -$('#inputor').caret('offset'); // => {left: 300, top: 400, height: 20} - -var fixPos = 20 -// Get position of the 20th char in the inputor. -// not working in `contentEditable` mode -$('#inputor').caret('position', fixPos); - -// Get offset of the 20th char. -// not working in `contentEditable` mode -$('#inputor').caret('offset', fixPos); - -// more - -// Get caret position from the first char in the inputor. -$('#inputor').caret('pos'); // => 15 - -// Set caret position in the inputor -// not working in contentEditable mode -$('#inputor').caret('pos', 15); - -// set iframe context -// NOTE: Related to the iframe's cooridinate. -// You might want to get the iframe's offset/position on your own -$('#inputor').caret('offset', {iframe: theIframe}); -$('#inputor').caret('position', {iframe: theIframe}); -$('#inputor').caret('pos', 15, {iframe: theIframe}); - -``` |