Changeset 4363


Ignore:
Timestamp:
2009-10-13 21:10:42 (2 years ago)
Author:
wwalc
Message:

#4194 - Added support for using multiple css stylesheets within the editor.

Location:
CKEditor/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r4362 r4363  
    4141        <ul> 
    4242                <li><a href="http://dev.fckeditor.net/ticket/4219">#4219</a> : Added fallback mechanism for config.language.</li> 
     43                <li><a href="http://dev.fckeditor.net/ticket/4194">#4194</a> : Added support for using multiple css stylesheets within the editor.</li> 
    4344        </ul> 
    4445        <p> 
  • CKEditor/trunk/_source/core/config.js

    r4326 r4363  
    6464 
    6565        /** 
    66          * The CSS file to be used to apply style to the contents. It should 
     66         * The CSS file(s) to be used to apply style to the contents. It should 
    6767         * reflect the CSS used in the final pages where the contents are to be 
    6868         * used. 
    69          * @type String 
     69         * @type String|Array 
    7070         * @default '&lt;CKEditor folder&gt;/contents.css' 
    7171         * @example 
    7272         * config.contentsCss = '/css/mysitestyles.css'; 
     73         * config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css']; 
    7374         */ 
    7475        contentsCss : CKEDITOR.basePath + 'contents.css', 
  • CKEditor/trunk/_source/plugins/font/plugin.js

    r4036 r4363  
    3737                                panel : 
    3838                                { 
    39                                         css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ], 
     39                                        css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 
    4040                                        voiceLabel : lang.panelVoiceLabel 
    4141                                }, 
  • CKEditor/trunk/_source/plugins/format/plugin.js

    r4036 r4363  
    3434                                panel : 
    3535                                { 
    36                                         css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ], 
     36                                        css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 
    3737                                        voiceLabel : lang.panelVoiceLabel 
    3838                                }, 
  • CKEditor/trunk/_source/plugins/preview/plugin.js

    r4174 r4363  
    3838                                        baseTag + 
    3939                                        '<title>' + editor.lang.preview + '</title>' + 
    40                                         '<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _cktemp="true"/>' + 
     40                                        '<link type="text/css" rel="stylesheet" href="' + 
     41                                        [].concat( editor.config.contentsCss ).join( '"><link type="text/css" rel="stylesheet" href="' ) + 
     42                                        '">' + 
    4143                                        '</head>' + bodyHtml + 
    4244                                        editor.getData() + 
  • CKEditor/trunk/_source/plugins/stylescombo/plugin.js

    r4036 r4363  
    2727                                        panel : 
    2828                                        { 
    29                                                 css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ], 
     29                                                css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 
    3030                                                voiceLabel : lang.panelVoiceLabel 
    3131                                        }, 
  • CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js

    r4354 r4363  
    561561                                                                        '<html dir="' + editor.config.contentsLangDirection + '">' + 
    562562                                                                        '<head>' + 
    563                                                                                 '<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _fcktemp="true"/>' + 
     563                                                                                '<link type="text/css" rel="stylesheet" href="' + 
     564                                                                                [].concat( editor.config.contentsCss ).join( '"><link type="text/css" rel="stylesheet" href="' ) + 
     565                                                                                '">' + 
    564566                                                                                '<style type="text/css" _fcktemp="true">' + 
    565567                                                                                        editor._.styles.join( '\n' ) + 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy