[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/resources/src/jquery/ -> jquery.textSelection.js (summary)

These plugins provide extra functionality for interaction with textareas.

File Size: 572 lines (20 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  rangeForElementIE()
  activateElementOnIE()
  checkSelectedText()
  doSplitLines()
  getCaret()
  getLineLength()
  getCaretScrollPosition()

Functions
Functions that are not part of a class:

rangeForElementIE( e )   X-Ref
Helper function to get an IE TextRange object for an element


activateElementOnIE( element )   X-Ref
Helper function for IE for activating the textarea. Called only in the
IE-specific code paths below; makes use of IE-specific non-standard
function setActive() if possible to avoid screen flicker.


checkSelectedText()   X-Ref
Check if the selected text is the same as the insert text


doSplitLines( selText, pre, post )   X-Ref
Do the splitlines stuff.

Wrap each line of the selected text with pre and post

getCaret( e )   X-Ref
Ported from Wikia's LinkSuggest extension
https://svn.wikia-code.com/wikia/trunk/extensions/wikia/LinkSuggest
Some code copied from
http://www.dedestruct.com/2008/03/22/howto-cross-browser-cursor-position-in-textareas/

Get the position (in resolution of bytes not necessarily characters)
in a textarea

Will focus the textarea in some browsers (IE/Opera)


getLineLength( e )   X-Ref
Ported from Wikia's LinkSuggest extension
https://svn.wikia-code.com/wikia/trunk/extensions/wikia/LinkSuggest

Scroll a textarea to the current cursor position. You can set the cursor
position with setSelection()
param: options boolean Whether to force a scroll even if the caret position

getCaretScrollPosition( e )   X-Ref
No description



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1