From 883cf7bf91532fb43700304864734e9219fe1530 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Tue, 18 Jan 2022 19:56:36 -0500 Subject: [PATCH] Improving tiddlers importation and viewing. --- repository/TiddlyWiki/Tiddler.class.st | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/repository/TiddlyWiki/Tiddler.class.st b/repository/TiddlyWiki/Tiddler.class.st index 6bf6e71..45de085 100644 --- a/repository/TiddlyWiki/Tiddler.class.st +++ b/repository/TiddlyWiki/Tiddler.class.st @@ -163,7 +163,7 @@ Tiddler >> fromDictionary: aDictionary [ title: (aDictionary at: 'title'); text: (aDictionary at: 'text' ifAbsentPut: [ nil ]); tags: (aDictionary at: 'tags' ifAbsentPut: [ nil ]); - created: (aDictionary at: 'created' ifAbsentPut: [ nil ]); + created: (aDictionary at: 'created' ifAbsentPut: [ self class nowLocal ]); creator: (aDictionary at: 'creator' ifAbsentPut: [ nil ]); modified: (aDictionary at: 'modified' ifAbsentPut: [ nil ]); modifier: (aDictionary at: 'modifier' ifAbsentPut: [ nil ]); @@ -197,6 +197,14 @@ Tiddler >> fromMarkdownParsedItems: aCollection [ ] ] +{ #category : #accessing } +Tiddler >> gtTextFor: aView [ + + ^ aView textEditor + title: 'Text'; + text: [ text ] +] + { #category : #accessing } Tiddler >> importFedWikiPage: pageViewUrlString [ | pageTitle pageViewUrl pageData |