It probably should.
But we would have to query the user for an existing class name that they created that does the justification they want.
Or, even worse, we would have to create a Sigil specific css sheet ourselves with predetermined classes and then add those classes instead of using a quick inline style on just those paragraphs. To make matters worse we would have to link that predetermined standard Sigil class sheet to every xhtml file and of course inject terrible class names with some sigil specific name to prevent class name clashes. Sound familiar?
Yes, a user could mark the few paragraphs the want (using mark text) and then use find and replace to add their own class attribute to just the marked text.
So instead, we just inject inline style tags, like we have always done as it is cleaner than any other automated method.
Not sure there really is a better fully automated approach.
That said since justification is normally a document level item, using clips to add a class based on your current stylesheets to the body tag should be very straight forward. Many people do not use the Auto adding of their class selectors to their clips bar, but it is a very nice feature.
Quote:
Originally Posted by Hitch
Stupid Question?
Isn't that best and most easily done with CSS? Rather than using features that are more like the old Book View editor?
Hitch
|