Author Topic: Syntax file: HTML  (Read 3210 times)

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Syntax file: HTML
« on: October 29, 2009, 02:26:36 pm »
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="" />
« Last Edit: October 29, 2009, 02:37:51 pm by Stefan »
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Syntax file: HTML
« Reply #1 on: October 29, 2009, 06:36:32 pm »
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.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: Syntax file: HTML
« Reply #2 on: November 09, 2009, 08:25:21 pm »
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%[/url]%|%

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=" "> [/url]%|%
at least, if possible.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Syntax file: HTML
« Reply #3 on: November 09, 2009, 08:32:54 pm »
then do not press Cancel ;) but just OK with empty text.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: Syntax file: HTML
« Reply #4 on: November 09, 2009, 09:39:10 pm »

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

 :-\ Right  ;D