Neil wrote:

Michael Gordon wrote:

this was about editing my own web pages that did not have inline styling, where Composer would insert its own inline styles.


OK, so supposed I want a particular paragraph centred. I click the "centering" button. What should Composer do?
a) align="center"
b) style="text-align: center;"
c) give the paragraph a random id, and style that id
d) give the paragraph a random class, and style that class
e) pick one of the existing classes or id at random, and style that
f) find an existing class that specifies centred text, and add that class
g) ask the user what he wants, every time, because there's no other way to know which is right?


Composer should do nothing, it should leave the paragraph untouched. It is the responsibility of the external Style Sheet to format the paragraph. All Composer should do in this case is add, modify, or remove text.

Here is another instance of Composer adding styles where they are not welcome. Open a web document in Composer where the page has a style sheet in the Header, or is controlled by an external style sheet. This page needs to have two or more images. Grab one image and drag it into a new location on the page. Save the page, then open it with your second favorite text editor. Read all the Composer styles added to the moved image, notice the lack of styles in the image not touched.
_______________________________________________
mozilla-editor mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-editor

Reply via email to