mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-04 13:19:11 +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;
|
||||
case "item":
|
||||
// Create a new older sibling item to contain the image
|
||||
var parentTitle = this.parentStack[this.parentStack.length - 1].title;
|
||||
tiddler["toc-type"] = "item";
|
||||
this.insertBeforeListItem(parentTitle,title,containerTitle);
|
||||
var parentTitle = this.parentStack[this.parentStack.length - 1].title,
|
||||
itemTitle = this.makeUniqueTitle("image-item-wrapper",containerTitle),
|
||||
itemTiddler = {
|
||||
title: itemTitle,
|
||||
"toc-type": "item",
|
||||
list: [title],
|
||||
text: "[img[" + title + "]]"
|
||||
};
|
||||
this.addTiddler(itemTiddler);
|
||||
this.insertBeforeListItem(parentTitle,itemTitle,containerTitle);
|
||||
break;
|
||||
}
|
||||
this.addTiddler(tiddler);
|
||||
|
Loading…
Reference in New Issue
Block a user