I have an html editor that I'm remaking, and I'm at the point now where I'm trying to figure out how I want the Insert menu to behave...
In the old version, the first menu item in the Insert menu was "Plain Code", which can be checked off. If the current html file is new, and it wasn't saved yet, it's always checked. If it's checked, then clicking anything else on the Insert menu (Image, Link, etc) would just insert the basic tags that were necessary, along with any required attributes, but they would be blank, so you can fill in their values manually. If it's not checked, then an Open dialog comes up that allows you to choose the file you want inserted (html file for a link, image file for an image, etc).
I'm considering changing that for the new version. What I'm thinking is maybe the "Plain Code" item could disappear. If the current html file doesn't yet correspond to a file on the disk (needed, in order to do such things as determine relative paths), then it'll just insert the generic tags as before. Otherwise, it'll bring up a dialog that allows you to choose whether you actually want values in the various attributes, and where applicable, there can be a Browse button (or something similar) that lets you choose the necessary file.
Any suggestions on which is the better idea? Or maybe you have a third idea that might be even better? I'm interested in hearing anyone's input.
If you really did read all the way through this, then I'd like to thank you just for that. I hope you might have some comments or suggestions...
In the old version, the first menu item in the Insert menu was "Plain Code", which can be checked off. If the current html file is new, and it wasn't saved yet, it's always checked. If it's checked, then clicking anything else on the Insert menu (Image, Link, etc) would just insert the basic tags that were necessary, along with any required attributes, but they would be blank, so you can fill in their values manually. If it's not checked, then an Open dialog comes up that allows you to choose the file you want inserted (html file for a link, image file for an image, etc).
I'm considering changing that for the new version. What I'm thinking is maybe the "Plain Code" item could disappear. If the current html file doesn't yet correspond to a file on the disk (needed, in order to do such things as determine relative paths), then it'll just insert the generic tags as before. Otherwise, it'll bring up a dialog that allows you to choose whether you actually want values in the various attributes, and where applicable, there can be a Browse button (or something similar) that lets you choose the necessary file.
Any suggestions on which is the better idea? Or maybe you have a third idea that might be even better? I'm interested in hearing anyone's input.
If you really did read all the way through this, then I'd like to thank you just for that. I hope you might have some comments or suggestions...