You are not logged in.
Pages: 1
Is it possible to hide the stylelist pane without reloading the page? It's a fantastic plugin (better than the other CSS options, I think), but it takes up a lot of space.
Offline
Along with the above request, I am also looking for the line in the code where I can specify where to render the pane (left, right, top, bottom). I have seen examples where it is on the right and bottom so I know this is possible, I just do not know where to set it. Thanks.
Offline
plugins/Stylist/stylist.js line 484:
editor._stylist = editor.addPanel('right');
but i don't know how you can change it without modifing the source of the plugin.
propably we could need there a plugin-config-setting??
Niko
Offline
Along these same lines, I would like to see the Stylelist plugin use "custom" css styles to display.
Right now, it uses the following:
hr {
border: none;
border-top: 1px solid #ccb;
margin: 2em 0;
}
:link, :visited {
text-decoration: none;
color: #b00;
border-bottom: 1px dotted #bbb;
}
:link:hover, :visited:hover {
background-color: #eee;
color: #555;
}
But this is bad, since it breaks the rest of my application. How about using custom styles, like
.stylelistHeader {
border: none;
border-top: 1px solid #ccb;
margin: 2em 0;
}
I looked everywhere in the stylist.js file, but I couldn't find where to put these in without breaking other things. Would anyone mind casting some light on the subject please?
Offline
Along these same lines, I would like to see the Stylelist plugin use "custom" css styles to display.
I believe what you are looking for is the following:
// We can load an external stylesheet like this - NOTE : YOU MUST GIVE AN ABSOLUTE URL
// otherwise it won't work!
xinha_config.stylistLoadStylesheet(document.location.href.replace(/[^\/]*\.html/, 'stylist.css'));
// Or we can load styles directly
xinha_config.stylistLoadStyles('p.red_text { color:red }');
I hope that helps
Offline
Thanks Bone612, but I'm well aware of how to call styles that are displayed by the plugin. I'm talking about how the plugin ITSELF is displayed. In the example, the text is Arial red, with dotted border:
:link, :visited {
text-decoration: none;
color: #b00;
border-bottom: 1px dotted #bbb;
}
This is called OUTSIDE of the stylistLoadStylesheet, it's the css called normally by the page that _displays_ the editor.
The problem, again, is that these are general css styles that affect the rest of the page, not just the xinha editor and how she looks.
I hope that makes more sense.
Offline
Thanks Bone612, but I'm well aware of how to call styles that are displayed by the plugin. I'm talking about how the plugin ITSELF is displayed. In the example, the text is Arial red, with dotted border:
:link, :visited {
text-decoration: none;
color: #b00;
border-bottom: 1px dotted #bbb;
}This is called OUTSIDE of the stylistLoadStylesheet, it's the css called normally by the page that _displays_ the editor.
The problem, again, is that these are general css styles that affect the rest of the page, not just the xinha editor and how she looks.
I hope that makes more sense.
....make a patch and submit it as new ticket...
gogo will hopefully include it then!
Niko
Offline
Relating to the question about the formatting for the Stylelist - is there any way of changing the width of the panel?
Thanks!
Offline
Relating to the question about the formatting for the Stylelist - is there any way of changing the width of the panel?
Thanks!
See the config object (in htmlarea.js), it's in there.
James Sleeman
Offline
Is it possible to hide the stylelist pane without reloading the page? It's a fantastic plugin (better than the other CSS options, I think), but it takes up a lot of space.
Ummmm. Not currently, but it could be. Submit an enhancement request.
James Sleeman
Offline
Along with the above request, I am also looking for the line in the code where I can specify where to render the pane (left, right, top, bottom). I have seen examples where it is on the right and bottom so I know this is possible, I just do not know where to set it. Thanks.
It's currently hard coded into plugins/Stylist/stylist.js, like 484. I'll make it into a config option.
James Sleeman
Offline
Along these same lines, I would like to see the Stylelist plugin use "custom" css styles to display.
Right now, it uses the following:
These are just the CSS rules for the example. Stylist itself has no CSS rules to determine it's display.
You can make your own, everything in the stylist is contained within a div with classname .stylist.
.stylist h1 { /* whatever */ }
.stylist a { /* whatever */ }
you could use the firefox dom inspector to see what exactly is there for you to change, simply search for attr "class" contains "stylist" and explore away.
James Sleeman
Offline
dlst wrote:Along these same lines, I would like to see the Stylelist plugin use "custom" css styles to display.
Right now, it uses the following:
These are just the CSS rules for the example. Stylist itself has no CSS rules to determine it's display.
You can make your own, everything in the stylist is contained within a div with classname .stylist.
.stylist h1 { /* whatever */ }
.stylist a { /* whatever */ }you could use the firefox dom inspector to see what exactly is there for you to change, simply search for attr "class" contains "stylist" and explore away.
Thanks gogo. Does this apply to the most recent nightly, or from a couple weeks ago?
Offline
JAC wrote:Relating to the question about the formatting for the Stylelist - is there any way of changing the width of the panel?
Thanks!
See the config object (in htmlarea.js), it's in there.
Lines 275-281 control the editing of "panel_dimensions" which seems to do the trick.
Last edited by JAC (2005-03-30 12:45:37)
Offline
The styling of stylist itself could really do with being pulled out of stylist.js and stuck in a .css file or a config.js of some sort.
EDIT: n/m just read up
Last edited by adamp (2005-03-30 10:26:33)
Offline
I would like to hide the style list, because its pretty big (I don't need th ordered list option at all). This topic is a bit old, maybe there is a solution now. Please let me know if there is.
Thanks!
Offline
Pages: 1