by mr_lundis on Mon Nov 03, 2008 6:22 pm
Hi timbe!
Images get encased inside paragraphs because the img element is an inline element, thus it needs to be contained inside a block element (such as a paragraph or a division), otherwise the code won't validate. Now you might say that when you presents your content it's already contained inside a block element, but the editor isn't aware of that.
And regarding the image alignment, that's a design concern. Therefore such functionality isn't available by default, as the primary focus of WYMeditor is the content itself not the presentation of it. However one could argue that if WYMeditor is ever to reach a broader audience more design related features might need to be included, witch then can be enabled or disabled as needed.
I hope I've given you a somewhat satisfying answer, cheers mate!
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!