Can a script add text at the insertion point?

13 views
Skip to first unread message

axelm

unread,
Sep 27, 2011, 5:53:59 PM9/27/11
to tiddl...@googlegroups.com
Hello all,

Can a script be added to the "View Template" to add a button that when clicked can add text at the insertion point?

axelm


Eric Shulman

unread,
Sep 27, 2011, 7:12:30 PM9/27/11
to TiddlyWiki
> Can a script be added to the "View Template" to add a button that when
> clicked can add text at the insertion point?

See:

http://www.TiddlyTools.com/#QuickEditPackage

This package consists of a plugin and set of tiddlers that define a
"QuickEditToolbar" that can be added to the EditTemplate. Each button
provides a different type of editing function (i.e., formatting,
links, colors, etc) which, automatically modifies the current text
selection or adds content at the insertion point (if no selection) in
the editor's text area.

Note that this is for use in the *EditTemplate*. However, you say you
want something to use in the *ViewTemplate*. This is confusing, as
there is normally not an "insertion point" when a tiddler is being
*viewed*. If you really *do* want to add text to a tiddler while
*viewing* it, there's another solution I can offer:

http://www.TiddlyTools.com/#QuickNotePlugin

This provides a form (which can be hidden in a slider until needed)
that lets you add a quick text note to the end of the current tiddler
content, without entering full 'edit mode' on the tiddler. Note: you
can customize the HTML form used by the plugin by modifying the
[[QuickNotePluginPanel]] shadow tiddler.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

----
TiddlyTools NEEDS your FINANCIAL support...
HELP ME TO CONTINUE TO HELP YOU!
Make a generous donation today:
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
ANALYSIS, DESIGN, and CUSTOM SOLUTIONS:
http://www.TiddlyTools.com/#Contact
Reply all
Reply to author
Forward
0 new messages