
tparscal at svn
Nov 23, 2009, 2:09 PM
Post #1 of 1
(97 views)
Permalink
|
|
SVN: [59371] trunk/extensions/UsabilityInitiative/js/plugins/jquery. wikiEditor.js
|
|
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/59371 Revision: 59371 Author: tparscal Date: 2009-11-23 22:09:56 +0000 (Mon, 23 Nov 2009) Log Message: ----------- Moved some comments around. Modified Paths: -------------- trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js Modified: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js =================================================================== --- trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js 2009-11-23 21:45:14 UTC (rev 59370) +++ trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js 2009-11-23 22:09:56 UTC (rev 59371) @@ -222,9 +222,9 @@ } }; - /* Create a set of functions for interacting with the editor content - * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead - */ + + /* Internal Functions */ + context.fn = { /** * Set up the magic iframe @@ -276,6 +276,7 @@ }, /** * Gets the currently selected text in the content + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead */ 'getSelection': function() { var retval; @@ -294,6 +295,7 @@ /** * Inserts text at the begining and end of a text selection, optionally inserting text at the caret when * selection is empty. + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead */ 'encapsulateSelection': function( options ) { // TODO: IE @@ -343,6 +345,7 @@ }, /** * Gets the position (in resolution of bytes not nessecarily characters) in a textarea + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead */ 'getCaretPosition': function( options ) { // FIXME: Character-based functions aren't useful for the magic iframe @@ -351,6 +354,7 @@ }, /** * Sets the selection of the content + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead * * @param start Character offset of selection start * @param end Character offset of selection end @@ -361,6 +365,7 @@ }, /** * Scroll a textarea to the current cursor position. You can set the cursor position with setSelection() + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead */ 'scrollToCaretPosition': function( options ) { // ... @@ -368,6 +373,8 @@ }, /** * Scroll an element to the top of the iframe + * DO NOT CALL THESE DIRECTLY, use .textSelection( 'functionname', options ) instead + * * @param $element jQuery object containing an element in the iframe * @param force If true, scroll the element even if it's already visible */ _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|