In message <[email protected]> on
Mon, 16 Jun 2014, Eric Shulman <[email protected]> writes
>http://www.TiddlyTools.com/#TextAreaPlugin
>http://www.TiddlyTools.com/#TextAreaPluginInfo
On Monday, 16 June 2014 22:59:18 UTC+1, Eric Shulman wrote:
http://www.TiddlyTools.com/#TextAreaPlugin
http://www.TiddlyTools.com/#TextAreaPluginInfo
Thanks Eric, when I was looking for a solution I came across your
Plugin, but couldn't see how I could apply it to my current problem. It
appeared to be about resizing the tiddler edit box rather than about a
field within a form. With your prompt, I've had another look, but I'm
afraid I still can't see how to apply it.
I tried adding <<resizeFrame>> or <span macro='resizeFrame'></span> to
the left and then to the right of <textarea name=Background rows="1"
cols="40" ></textarea> in ExampleTemplate. I have tried adding
<<resizeFrame>> , <<resizeTiddler>> and even <<resizeHere>> to the end
of both ExampleDatabase tiddler and the ExampleTemplate tiddler.
Then wondering if you were suggesting I use your plugin as inspiration
for my own ExpandingTextAreasPlugin, I tried writing one, by adapting
the closest config.macros. of yours, to produce:
/***
!Source Code
***/
//{{{
// create macro object
config.macros.expanding = {
// Add a handler function to be invoked by >
handler: function(place, macroName, params, wikifier,
paramString, tiddler) {
var here=story.findContainingTiddler(place); if (!here)
return;
var ta=here.getElementsByTagName('textarea');
if (ta) for (i=0;i<ta.length;i++) {
// only resize tiddler editor textareas
if (ta[i].getAttribute("edit")==undefined) continue;
new window.Expanding(ta[i]);
}
}
};
//}}}
But again, I tried lots of combinations of using <<expanding>> in
various places, but the size of my "Background" text boxes never changed
a pixel.
Any further help would be much appreciated.
Take care,
Mark..........
--
Mark Booth
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.