Forum closed. New forum available at http://community.wymeditor.org/

Theming: Stylesheets versus themes

Support forum for WYMeditor.

Theming: Stylesheets versus themes

Postby winhamwr on Tue Nov 25, 2008 1:09 am

Hello.

I'm attempting to use the stylesheet option to include a small section of code that just styles the lists in the editor. The issue is that I can't figure out which styles to modify in order to change the default of decimal list ordering only (1. 2. 3. etc) to something like upper-alpha, decimal, lower-alpha. My clients use the editor as intended and I then style their documents afterwards with the preferred method of styling (which happens to be alpha -> decimal -> lower-alpha) and it's confusing composing a document which then receives a new list numbering system.

I've tried both of the following (plus a lot of other stuff) test css snippets to see if I can have any effect:
Code: Select all
/* WYMeditor */
/* LIST: Special */
.wym_section ol {
   list-style-type:upper-alpha;
}
/* /WYMeditor */


Code: Select all
/* WYMeditor */
.wym_containers_p ol {
   list-style-type:lower-roman;
}
/* /WYMeditor */


And neither have any effect on the number when called with:
Code: Select all
$('#id_doc-html').wymeditor(
{
    basePath: 'http://branch.pstat/lib/wymeditor/wymeditor/',
html: '',
stylesheet: '/wymeditor_style/',
skinPath: 'http://branch.pstat/lib/wymeditor/wymeditor/skins/pstat/',
    postInit: function(wym) {
        wym.spellcheck();
    }
})


The snippets are located at /wymeditor_style/ (which is resolving correctly, tested both directly in my browser and by putting gibberish in the file which crashes WYMeditor).

Can anyone provide any insight in to what I might have to do in order to modify the number of those ordered lists?
winhamwr
 
Posts: 3
Joined: Tue Nov 25, 2008 12:58 am

Re: Theming: Stylesheets versus themes

Postby mr_lundis on Tue Dec 02, 2008 9:07 pm

Hello winhamwr, and welcome to the WYMeditor forum!

The stylesheet option can be used to provide WYMeditor with a CSS file to parse for classes that the user then can apply to the editor content. Try to modify the wymiframe.css file instead, this file governs the editor presentation of the content.

Cheers!
Jonatan Lundin - designer, developer and forum moderator. You should follow me on Twitter!
mr_lundis
 
Posts: 335
Joined: Sun Dec 02, 2007 10:59 am
Location: Sweden


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest