EDIT: Yes, I know I used the word "proper". But that doesn't necessarily mean it is opinion based. If you are undecided on the proper way to do so, please vote me down. But if you feel there is only one proper way to do so, please let me know. Thanks
I am creating an image
plugin
for tinymce and/or other html editors
which allows the user to upload an image and style
it. The user can define various qualities of the image
such as alt, title, height, width, src, vertical margin, horizontal margin, and border. Upon uploading an image
, my application will insert it with the appropriate qualities. Furthermore, my application needs to be able to select an image
already in the editor space, and be able to determine the existing image
qualities.
Given this scenario, it seems like an external
CSS file is not appropriate. Agree?
I am under the impression that alt, title, and src should all be html attributes.
What about height and width? How about vertical margin (top and bottom), horizontal margin (left and right), and border (width and style)?