Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-11-03 17:57:23

dlst
Xinha Community Member
Registered: 2005-02-20
Posts: 33

Stylist - ignore list of styles?

Hello,

Is there a way of having stylist ignore a pre-determined set of styles?  I've tried playing around with stylist.js but I haven't had any success. 

This would be nice, as I could hide unnecessary styles from the end user that only confuse them.

Thanks!

Offline

#2 2006-11-03 20:31:42

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Stylist - ignore list of styles?

You could split your css into two style sheet an load on through xinha_config.stylistLoadStylesheet('stylesheetForStylist') and one through xinha_config.pageStyleSheets = ['otherStylesheet']

Offline

#3 2006-11-03 21:45:55

dlst
Xinha Community Member
Registered: 2005-02-20
Posts: 33

Re: Stylist - ignore list of styles?

Thank you, that will solve my problem adequately. 

While I'm on the subject (and this came up during testing), how do you remove a style from a selection if it doesn't appear in the stylist?

That is, the content in my textarea has a style applied to a <p> tag, but that style was included using pageStyleSheets, so it doesn't appear in the stylist.  Short of deleting the selection and starting over, is there a way of removing a style?

Offline

#4 2006-11-15 23:21:01

dlst
Xinha Community Member
Registered: 2005-02-20
Posts: 33

Re: Stylist - ignore list of styles?

I guess not sad

Is there such thing as a tag editor?  It would be great to right click on a selection (say, a P element), and be able to manually change the attributes of the element.

Offline

#5 2006-11-16 06:21:50

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Stylist - ignore list of styles?

I'm working on something in this direction. It's a side panel that shows attributes (from a configurable list) of the tag.
It's not at all ready, but if you like, you can try (beta test) it.
http://raimundmeyer.de/xinha/Properties.zip
Any ideas welcome!

Offline

#6 2006-11-16 12:52:32

dlst
Xinha Community Member
Registered: 2005-02-20
Posts: 33

Re: Stylist - ignore list of styles?

Hi ray,

I've installed the properties plugin you wrote, and I've had a few minutes to play with it.  Here's some feedback (I apologize if I point out issues that you're already aware of):

- It's not clear how one is supposed to apply a change.  For example, when one clicks in the field, the check mark appears, but clicking on it does not retain the new value.
- Maybe related to above, but removing a value completely does not stick.  If I remove a value, it comes back.
- "ID", "Title" and "CSS Class" font size is too big, at least on mine, so that the fields don't fit in the side bar.  This is a very minor thing.

One feature I would like to see, if possible, would be the ability to turn on/off the panel via a button in the toolbar.  Most users (at least in my case) would never want or need to use this feature, so if it stayed turned off most of the time that would be better.

Other than that... WOW!!! What a fantastic plugin.  It's so simple and well-implemented, you're doing a great job!

Thanks!

Offline

#7 2006-11-16 21:36:58

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: Stylist - ignore list of styles?

So, hope works better now.
No toolbar button because I have no nice icon, but click on the arrow in the corner. I think together with stylist (which you can't hide either), this works OK.
I'm glad you like it!

Offline

#8 2006-11-16 22:49:47

dlst
Xinha Community Member
Registered: 2005-02-20
Posts: 33

Re: Stylist - ignore list of styles?

Yes, very nice.  I hope you don't mind, I recreated the arrows as transparent gifs that are a little smoother: http://www.seblin.com/arrows.zip

If you want I can create a toolbar icon, just let me know, but your method of using the arrows works great.  I don't think a toolbar icon is even necessary.

I have just one follow-up questions:

- Is it possible to do a border="0" on the arrow?  Right now there's a blue border around the image, and I couldn't see how to do this in properties.js (I looked at lines 51, 80, 103, and 108).  (Sorry, java isn't my strong suit)

Other than that it's pretty perfect.  Truly excellent work.

Offline

Board footer

Powered by FluxBB