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:
parent
ffc30b1872
commit
a4b8551e00
@ -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({
|
||||
|
@ -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
|
||||
|
@ -10,6 +10,7 @@
|
||||
"tiddlywiki/highlight",
|
||||
"tiddlywiki/markdown",
|
||||
"tiddlywiki/bibtex",
|
||||
"tiddlywiki/savetrail",
|
||||
"tiddlywiki/external-attachments",
|
||||
"tiddlywiki/dynaview",
|
||||
"tiddlywiki/codemirror",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user