More styles
This commit is contained in:
parent
56ae5d9ff9
commit
a0ed6dcbab
15 changed files with 183 additions and 293 deletions
|
|
@ -1244,12 +1244,11 @@ var Editor = function(renderer, session) {
|
|||
|
||||
/** related to: EditSession.moveLinesDown
|
||||
* Editor.moveLinesDown() -> Number
|
||||
*
|
||||
* + (Number): On success, it returns -1.
|
||||
*
|
||||
* Shifts all the selected lines down one row.
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* On success, it returns -1.
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.moveLinesDown = function() {
|
||||
|
|
@ -1260,12 +1259,10 @@ var Editor = function(renderer, session) {
|
|||
|
||||
/** related to: EditSession.moveLinesUp
|
||||
* Editor.moveLinesUp() -> Number
|
||||
*
|
||||
* + (Number): On success, it returns -1.
|
||||
*
|
||||
* Shifts all the selected lines up one row.
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* On success, it returns -1.
|
||||
*
|
||||
**/
|
||||
this.moveLinesUp = function() {
|
||||
|
|
@ -1278,16 +1275,13 @@ var Editor = function(renderer, session) {
|
|||
* Editor.moveText(fromRange, toPosition) -> Range
|
||||
* - fromRange (Range): The range of text you want moved within the document
|
||||
* - toPosition (Object): The location (row and column) where you want to move the text to
|
||||
* + (Range): The new range where the text was moved to.
|
||||
*
|
||||
* Moves a range of text from the given range to the given position. `toPosition` is an object that looks like this:
|
||||
*
|
||||
* { row: newRowLocation, column: newColumnLocation }
|
||||
*
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* The new range where the text was moved to.
|
||||
*
|
||||
**/
|
||||
this.moveText = function(range, toPosition) {
|
||||
if (this.$readOnly)
|
||||
|
|
@ -1298,13 +1292,11 @@ var Editor = function(renderer, session) {
|
|||
|
||||
/** related to: EditSession.duplicateLines
|
||||
* Editor.copyLinesUp() -> Number
|
||||
*
|
||||
* + (Number): On success, returns 0.
|
||||
*
|
||||
* Copies all the selected lines up one row.
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* On success, returns 0.
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.copyLinesUp = function() {
|
||||
this.$moveLines(function(firstRow, lastRow) {
|
||||
|
|
@ -1315,12 +1307,11 @@ var Editor = function(renderer, session) {
|
|||
|
||||
/** related to: EditSession.duplicateLines
|
||||
* Editor.copyLinesDown() -> Number
|
||||
*
|
||||
* + (Number): On success, returns the number of new rows added; in other words, `lastRow - firstRow + 1`.
|
||||
*
|
||||
* Copies all the selected lines down one row.
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* On success, returns the number of new rows added; in other words, `lastRow - firstRow + 1`.
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.copyLinesDown = function() {
|
||||
|
|
@ -1576,14 +1567,12 @@ var Editor = function(renderer, session) {
|
|||
|
||||
/** related to: Selection.getCursor
|
||||
* Editor.getCursorPosition() -> Object
|
||||
*
|
||||
* + (Object): This returns an object that looks something like this:<br/>
|
||||
* ```{ row: currRow, column: currCol }```
|
||||
*
|
||||
* Gets the current position of the cursor.
|
||||
*
|
||||
* #### Returns
|
||||
*
|
||||
* This returns an object that looks something like this:
|
||||
*
|
||||
* { row: currRow, column: currCol }
|
||||
*
|
||||
*
|
||||
**/
|
||||
this.getCursorPosition = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue