1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Make the savetrail plugin work again

This commit is contained in:
Jeremy Ruston 2019-12-06 16:23:15 +00:00
parent ffc30b1872
commit a4b8551e00
4 changed files with 3 additions and 3 deletions

View File

@ -131,6 +131,7 @@ exports.startup = function() {
wiki: $tw.wiki,
syncadaptorClass: syncadaptorClass
});
$tw.syncadaptor = $tw.syncer.syncadaptor; // For backwards compatibility
}
// Setup the saver handler
$tw.saverHandler = new $tw.SaverHandler({

View File

@ -67,7 +67,6 @@ function Syncer(options) {
wiki: $tw.wiki,
logger: this.logger
});
$tw.syncadaptor = this.syncadaptor; // For backwards compatibility
// Listen out for changes to tiddlers
this.wiki.addEventListener("change",function(changes) {
// Filter the changes to just include ones that are being synced

View File

@ -10,6 +10,7 @@
"tiddlywiki/highlight",
"tiddlywiki/markdown",
"tiddlywiki/bibtex",
"tiddlywiki/savetrail",
"tiddlywiki/external-attachments",
"tiddlywiki/dynaview",
"tiddlywiki/codemirror",

View File

@ -26,10 +26,9 @@ var ENABLE_TIDDLER_TITLE = "$:/config/SaveTrailPlugin/enable",
exports.startup = function() {
$tw.savetrail = $tw.savetrail || {};
// Create a syncer to handle autosaving
$tw.savetrail.syncadaptor = new SaveTrailSyncAdaptor();
$tw.savetrail.syncer = new $tw.Syncer({
wiki: $tw.wiki,
syncadaptor: $tw.savetrail.syncadaptor,
syncadaptorClass: SaveTrailSyncAdaptor,
titleSyncFilter: SYNC_DRAFTS_FILTER_TIDDLER_TITLE,
logging: false,
disableUI: true