mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-03 02:27:03 +00:00
Text-slicer: better support for specifying the output title
Can be specified directly, or taken from a field of the tiddler being sliced, falling back to a default.
This commit is contained in:
@@ -21,7 +21,9 @@ exports.synchronous = true;
|
||||
// Install the root widget event handlers
|
||||
exports.startup = function() {
|
||||
$tw.rootWidget.addEventListener("tm-slice-tiddler",function(event) {
|
||||
var slicer = new $tw.Slicer($tw.wiki,event.param);
|
||||
var slicer = new $tw.Slicer($tw.wiki,event.param,{
|
||||
destTitle: event.paramObject.destTitle
|
||||
});
|
||||
slicer.sliceTiddler(event.param)
|
||||
slicer.outputTiddlers();
|
||||
slicer.destroy();
|
||||
|
||||
Reference in New Issue
Block a user