mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
Text-slicer: Fixes for images
This commit is contained in:
parent
cf00658ddf
commit
21175012dc
@ -46,9 +46,16 @@ exports.processImageNode = function(domNode,tagName) {
|
|||||||
break;
|
break;
|
||||||
case "item":
|
case "item":
|
||||||
// Create a new older sibling item to contain the image
|
// Create a new older sibling item to contain the image
|
||||||
var parentTitle = this.parentStack[this.parentStack.length - 1].title;
|
var parentTitle = this.parentStack[this.parentStack.length - 1].title,
|
||||||
tiddler["toc-type"] = "item";
|
itemTitle = this.makeUniqueTitle("image-item-wrapper",containerTitle),
|
||||||
this.insertBeforeListItem(parentTitle,title,containerTitle);
|
itemTiddler = {
|
||||||
|
title: itemTitle,
|
||||||
|
"toc-type": "item",
|
||||||
|
list: [title],
|
||||||
|
text: "[img[" + title + "]]"
|
||||||
|
};
|
||||||
|
this.addTiddler(itemTiddler);
|
||||||
|
this.insertBeforeListItem(parentTitle,itemTitle,containerTitle);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.addTiddler(tiddler);
|
this.addTiddler(tiddler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user