Ticket #945 (closed enhancement: wontfix)
Add ability for stylist to add ids to blocks
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin_Stylist | Version: | trunk |
| Severity: | normal | Keywords: | stylist |
| Cc: | jeffreyd.davis@… |
Description
Right now with stylist I can do this:
xinha_config.stylistLoadStyles('div.inset {margin: 2em auto; width: 80%; padding: 2em; background-color: #eeeeee;}', {'div.inset' : 'Inset'});
And now I have insets that are nice and friendly and appear in my Stylist. If I select a block of text and click the style, it will add a *class* to that block. However, I cannot do the same thing with IDs. Something like this:
xinha_config.stylistLoadStyles('div#toc {margin-left: 5%; width: 500px; padding: 2em; background-color: #eeeeee; margin-bottom: 50px;}', {'div#toc' : 'Table of Contents'});
If I try to right now, it will correctly style a block that already has the ID, but the ID will simply not appear in my stylist.
Of course, if this is not too easy, just reply and I will dig into it myself. The code for stylist does not look incredibly complicated.
Thanks!
