In any page, type a line of text:
This is one.
select "one" and click "insert conditional text". The dialog appears with IF selected.
Tick "User Defined 1" and click OK. The text is correctly made conditional.
Now type the word "two" immediately after the END marker. This leaves the cursor to the right of the word. Select "two" by typing Ctrl+Shift+left (or wiping the cursor from right to left).
Now when you click "insert conditional text", ENDIF is selected, and if you click OK, nothing is changed.
If, before clicking OK, you actively select IF, it inserts that, but not the corresponding END.
It seems you must select from left to right for this to work. This is very annoying as the cursor is almost always at the right because I've just typed in the new conditional text. Selecting from the left then involves more work than selecting from the right.
Insert Text Condition depends on direction of selection.
Moderators: Alexander Halser, Tim Green
-
- Posts: 26
- Joined: Sun Jul 20, 2008 8:33 am
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
This will only happen if your new condition starts directly after the END tag of the previous one. What is happening is that when you select to the left you like this the END tag is being included in the selection and so the ENDIF tag is preselecte.. This will be checked out but it may be difficult to fix if the behavior is being caused by the editor engine.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 26
- Joined: Sun Jul 20, 2008 8:33 am
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Actually it is, internally, that's the problem -- it is being "included" in the selection that analyzes where the cursor currently is in relation to tags, that's why ENDIF is being preselected. Also, if you switch the ENDIF to an IF condition and insert it will frequently replace the invisibly selected ENDIF tag.Peter Robertson wrote:The end tag is not selected.
Regards,
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.