You are not logged in.
Pages: 1
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
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
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
I guess not
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
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
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
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
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
Pages: 1