mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-05 00:32:13 -08:00
this allows using the pagescroller for scrolling elements into view where the rect gets calculated somewhere else
Example: CodeMirror has the `cm.cursorCoords()` function that returns the rect of the textselection (or cursor coordinates)
this scrolls the cursor or text selection into view using tiddlywikis pagescroller:
`$tw.pageScroller.scrollIntoView(undefined, function() { return self.cm.cursorCoords(true,"window"); });`
|
||
|---|---|---|
| .. | ||
| images | ||
| language | ||
| modules | ||
| palettes | ||
| templates | ||
| ui | ||
| wiki | ||
| acknowledgements.tid | ||
| copyright.tid | ||
| icon.tid | ||
| plugin.info | ||
| readme.tid | ||
| sjcl-license.tid | ||
title: $:/core/readme
This plugin contains TiddlyWiki's core components, comprising:
* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core