Main Menu

Syntax file: HTML

Started by Stefan, October 29, 2009, 02:26:36 PM

Previous topic - Next topic

Stefan

I just used the Code Template <img ==> <IMG SRC="%InteractiveFile%" ALT=""/>

But since i doesn't want to direct to an local file (but type my own location in), i canceled the browse-file-dialog.
(I mean, %InteractiveFile% doesn't fit here)

The issue i saw here was that after canceling the browse dialog,
the Code Template was finished too, letting me alone with an '<img' -part in the document only.

Just as idea:
can it be that after canceling the browse dialog the template is pasted in, even empty?
<IMG SRC="%|%" ALT=""/>


Work around:
In the meantime I have added an second Template for that case.

<imgi (old template img renamed to imgi,  i for interactive )
  Key: <imgi
  Des: <IMG interactive browse file
  Code: <IMG SRC="%InteractiveFile%" ALT=""/>

<img  (new template img, for just pasting in the template )
  Key: <img
  Des: <IMG template
  Code: <IMG SRC="%|%" ALT="" />
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Hi Stefan,

Hm... I see the problem. In case of simple interactive tag, you stop template processing when selecting Cancel. But you still continue and enter nothing by selecting OK. And this is not possible with InteractiveFile etc. You could not open empty file... So I would change the logic in such way, that cancel  in case of dialogs would set tag value to empty and continue processing.
I could not automatically replace it by %|% (at least now I am not sure that this is correct way) but you can get such behavior by doing adding %|% after %InteractiveFile%.

Would try to fix this today.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan

Thanks, the <img case from above works better now with Version 739.

But, what do you think, what is about IIB (interactive input box) ? like

<A HREF="%Link%">%Link Text%</A>%|%

If i cancel one IIB - then the whole insertion of the CT (code template) is canceled too.
The same thing as above. But i would expect to get the CT inserted like:
<A HREF=" "> </A>%|%
at least, if possible.
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

then do not press Cancel ;) but just OK with empty text.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Stefan


A> "then do not press Cancel ;) but just OK with empty text"   

:-\ Right  ;D

Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-