mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-29 13:35:15 +00:00
Add support for tm-copy-to-clipboard message
This commit is contained in:
@@ -30,6 +30,10 @@ exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tm-notify",function(event) {
|
||||
$tw.notifier.display(event.param,{variables: event.paramObject});
|
||||
});
|
||||
// Install the copy-to-clipboard mechanism
|
||||
$tw.rootWidget.addEventListener("tm-copy-to-clipboard",function(event) {
|
||||
$tw.utils.copyToClipboard(event.param);
|
||||
});
|
||||
// Install the scroller
|
||||
$tw.pageScroller = new $tw.utils.PageScroller();
|
||||
$tw.rootWidget.addEventListener("tm-scroll",function(event) {
|
||||
|
||||
Reference in New Issue
Block a user