View Full Version : Need some opinions
beetle
03-24-2003, 04:07 PM
Well, some of you have seen a project (http://www.peterbailey.net/dhtml/taeditor.htm) I'm working on. Now, I've come to a point where I personally can't decide which way to go, so, I hope to solicit some help/opinions from all of you.
The part I need help with is how the user/select/textbox interact. Ok, if there is a selection I will of course have the widget wrap the selection. But, if there is no active selection (or for browsers that don't handle it) I'm not sure the best way to make it behave.
brothercake
03-24-2003, 04:38 PM
I voted for the first one - it feels like the most intuitive.
Vladdy
03-24-2003, 04:48 PM
If the cursor is in the middle of the text (editing), add both openning and closing tags, if at the end (typing) just the opening.
Or you could always add both opening and closing tags, IF you position the cursor between them.
beetle
03-24-2003, 06:41 PM
Well, I've decided against popular vote that inserting the whole tag is not the best choice. Mostly because that defeats the purpose of what I'm doing with this sucker. So, I opted to add a small 'close' button next to each select. What do you think? I think it works pretty well.
Also, if someone could please tell me what the HECK Opera 7 thinks it's doing to my script! :( I can't narrow down the source of the behavior....
Jerome
03-25-2003, 09:43 PM
Hmmm..., just a thought,
When You open a tag there are 2 options:
Close this tag
Open a new tag for nesting
Let we say we open B and start to write, after opening I, we need to get a message, do You want to close B or not yet. Ofcourse when i open again another tag, we need to get the message, do You want to close I, and after do You want to close B
If then else thinking is the way to go for me,
Jerome
beetle
03-25-2003, 10:12 PM
Nah, I'm not gonna try to hold the user's hand that much. A little bit of up-front instruction should alleviate any problems like that.
Thanks just the same.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.