OK I wrote a script inside the tiddler :

<script label="change">
var t=story.findContainingTiddler(place);
var tid=store.getTiddler(t.getAttribute("tiddler"));
var title=tid.title;
var text=tid.text;
var debut=text.indexOf("!section1");
var fin=text.indexOf("!script");
var newtext=text.substring(0,debut+"!section1".length+1)+"Modified
text for section 1" +text.substring(fin-1);
store.saveTiddler(title,title,newtext,config.options.txtUserName,new
Date(),[],{});
var newtid=store.getTiddler(title);
story.displayTiddler(null,title);
</script>

Any idea for simplifying this script ?

Thanks in advance.

FrD

On 29 août, 17:49, FrD <[email protected]> wrote:
> Hello,
>
> I'm wondering whether there were a simple way to change the content of
> a section
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to