Move cursor
Description
Moves the text cursor to the document start/end.
Plugin type: visual, non-system.
Supported editors: documents.
Installation
Download this plugin from GitHub and install it following the desktop, on-premises, or cloud installation instructions.
Usage
- Open the Plugins tab and press Example move cursor.
- Press the Start button to move the text cursor to the document beginning.
- Press the End button to move the text cursor to the document end.
Plugin structure
Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/example_move_cursor.
- config.json, index.html, and code.js
- Icons
Config
{
"name": "Example move cursor",
"guid": "asc.{EF5735E0-69A7-4D4A-9ABE-F58FD70F488D}",
"variations": [
{
"description": "Example move cursor",
"url": "index.html",
"icons": ["resources/light/icon.png", "resources/light/icon@2x.png"],
"icons2": [
{
"style": "light",
"100%": {
"normal": "resources/light/icon.png"
},
"125%": {
"normal": "resources/light/icon@1.25x.png"
},
"150%": {
"normal": "resources/light/icon@1.5x.png"
},
"175%": {
"normal": "resources/light/icon@1.75x.png"
},
"200%": {
"normal": "resources/light/icon@2x.png"
}
},
{
"style": "dark",
"100%": {
"normal": "resources/dark/icon.png"
},
"125%": {
"normal": "resources/dark/icon@1.25x.png"
},
"150%": {
"normal": "resources/dark/icon@1.5x.png"
},
"175%": {
"normal": "resources/dark/icon@1.75x.png"
},
"200%": {
"normal": "resources/dark/icon@2x.png"
}
}
],
"isViewer": false,
"EditorsSupport": ["word"],
"isVisual": true,
"isModal": false,
"isInsideMode": true,
"initDataType": "none",
"initData": "",
"buttons": []
}
]
}
Methods and events
- button
- init
- executeMethod ("MoveCursorToStart")
- executeMethod ("MoveCursorToEnd")
Support
If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.