Eric, Thank for the reply.
Here is my question. I have the code as following using HTML code for my
text editing. I intended to modify my notes in the text textarea when I
write my note under view mode. I found the QuitEditPlugin is good for me.
However, it works in Edit model. Now, I am looking for the chance to use
this in view model. Thanks!
<html>
<body>
<nowiki>
<form>
Tiddler Title: <input name="title" size=75> <br>
<input type="button" value="reload" onclick='
var title=this.form.title.value;
var commentpre=store.getTiddlerText(title, "");
this.form.comment.value=commentpre;
'><span macro='popup History [[<<tiddler draft2$))]]'></span>
<input type="button" value="Clear"
onclick="this.form.title.value='';this.form.title.focus();"><br><br>
Subject: <input name="subitem" size=75>
Add
<input type="button" value="!!!" onclick='
this.form.subitem.value=this.form.subitem.value+"!!!";;this.form.subitem.focus();
'>
<input type="button" value="Clear"
onclick="this.form.subitem.value='';this.form.subitem.focus();"> <br>
Comments: (add *# before each item) <input type="button" value="Clear"
onclick="this.form.comment.value='*#';this.form.comment.focus();"><span
macro='popup help [[<<tiddler writingstyle-wm$))]]'></span>
<input type="button" value="Save/Append" onclick='
var title=this.form.title.value;
if (title==""){this.form.title.focus();return false;}
var previous=this.form.title.value;
var subitem=this.form.subitem.value;
var comment=this.form.comment.value;
var who=title;
var when=new Date();
if (subitem==""){
var txt=comment
+"\n"+store.getTiddlerText(previous, "")
+store.getTiddlerText("tiddlernamehere", "");
}
else{
var txt=subitem+"\n"+comment
+"\n"+store.getTiddlerText(previous, "")
+store.getTiddlerText("tiddlernamehere", "");
}
var tags="draft";
var fields={};
store.saveTiddler(title,title,txt,who,when,tags,fields);
story.displayTiddler(null,title);
config.commands.refreshTiddler.handler(null, null,
title);autoSaveChanges();
this.form.subitem.value="";
this.form.comment.value="";
return false;
'>
<span macro='editSection '></span>
Add:
<input type="button" value="nl*#" onclick='
this.form.comment.value=this.form.comment.value+"\n"+"*#";this.form.comment.focus();
'>
<input type="button" value="*#" onclick='
this.form.comment.value=this.form.comment.value+"*#";this.form.comment.focus();
'>
<input type="button" value="**" onclick='
this.form.comment.value=this.form.comment.value+"**";this.form.comment.focus();
'>
Color by
<input type="button" value="R" onclick='
this.form.comment.value=this.form.comment.value+"@@color:red;texthere@@";this.form.comment.focus();
'>
<input type="button" value="B" onclick='
this.form.comment.value=this.form.comment.value+"@@color:blue;texthere@@";this.form.comment.focus();
'>
<input type="button" value="G" onclick='
this.form.comment.value=this.form.comment.value+"@@color:green;texthere@@";this.form.comment.focus();
'>
<br>
<textarea name="comment" rows="12" cols="80">*#</textarea> <br>
<input type="button" value="Save/Overide" onclick='
var title=this.form.title.value;
if (title==""){this.form.title.focus();return false; }
var previous=this.form.title.value;
var subitem=this.form.subitem.value;
var comment=this.form.comment.value;
var who=title;
var when=new Date();
var txt=subitem+"\n"+comment
+"\n"+store.getTiddlerText("tiddlernamehere", "")
+store.getTiddlerText("tiddlernamehere", "");
if (subitem==""){var txt=comment;}
var tags="draft";
var fields={};
store.saveTiddler(title,title,txt,who,when,tags,fields);
story.displayTiddler(null,title);
config.commands.refreshTiddler.handler(null, null, title);
return false;
'>
<input type="button" value="reload" onclick='
var title=this.form.title.value;
var commentpre=store.getTiddlerText(title, "");
this.form.comment.value=commentpre;
'>
<input type="button" value="Clear All"
onclick="this.form.title.value='';this.form.title.focus();this.form.subitem.value='';this.form.comment.value='*#';">
</form>
</body>
</html>
On Friday, April 18, 2014 1:14:59 PM UTC+8, Eric Shulman wrote:
>
> On Wednesday, April 16, 2014 11:14:20 PM UTC-7, Ya Ya wrote:
>>
>> I am new here. I just wonder if I can use the QuickEdit plugin to edit
>> the text under view mode.
>>
>
> I'm not sure what you are trying to accomplish. If you are asking whether
> QuickEdit toolbar can be used to edit *rendered* tiddler content directly
> in view mode, without use of a text area... then the answer is no.
> QuickEdit toolbar only interacts with a textarea input control, such as
> the one used in edit mode for entering and modifying tiddler content using
> wiki syntax text input.
>
> If you can explain a bit more about your goals, perhaps I can suggest a
> different approach that an achieve the results you seek.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> YOUR DONATIONS ARE VERY IMPORTANT!
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
> http://TiddlyTools.github.com/fundraising.html#MakeADonation
>
> Professional TiddlyWiki Consulting Services...
> Analysis, Design, and Custom Solutions:
> http://www.TiddlyTools.com/#Contact
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.