Hi Eric

Just to confirm.....yes I re-activated HTMLFormattingPlugin and
supressed linebreaks....and it works fine.

Thanks

Skye

On 18 abr, 15:25, Eric Shulman <[email protected]> wrote:
> > I am trying to understand Erics HTMLFormattingPlugin. Thinking it was
> > a super essential part of any interactive (javascript forms) TW I
> > automatically include it in all my TWS. But now came across and
> > interesting problem.
>
> When I first created HTMLFormattingPlugin (I think it was my second or
> third plugin, back in 2005), the TWCore did not support *any* native
> use of HTML within tiddler content.  Basic <html>...</html>
> "embedding" was subsequently added to the TWCore, sometime in 2006 (or
> perhaps 2007?) so that -- as long as you don't need to mix TW-
> formatted content  (e.g., links to tiddlers, macros, etc.) within your
> HTML content -- the TWCore allows you to use HTML syntax within a
> tiddler without needing a plugin.
>
> Nonetheless, HTMFormattingPlugin is still very useful because it
> *extends* the TWCore formatting in two ways:
> * before the HTML is rendered, newlines are converted to "<br>" to
> preserve wiki-style line break handling (see HTMLFormattingPluginInfo
> for more details)
> * after the HTML is rendered, the resulting DOM elements are
> recursively scanned for text elements, which are then 'wikified' to
> expand any links, macros, etc. they contain
>
> I suspect the problem you are having is caused by the newlines
> embedded in the onclick='...' handler within your HTML.  The plugin
> converts all newlines to "<br>", which would create invalid code
> within the script.  Fortunately, you can easily bypass this conversion
> by using either the <nowiki> or <hide linebreaks> "psuedo-HTML"
> syntax, as described in the HTMLFormattingPluginInfo.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> ----
> WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
>    http://www.TiddlyTools.com/#Donations
> note: donations are directly used to pay for food, rent,
> gas, net connection, etc., so please give generously and often!
>
> 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 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