Ticket #4194: 4194_2.patch

File 4194_2.patch, 4.2 KB (added by Wiktor Walc, 15 years ago)
  • _source/core/config.js

     
    6363        baseHref : '',
    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 '<CKEditor folder>/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',
    7576
  • _source/plugins/font/plugin.js

     
    3636
    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                                },
    4242
  • _source/plugins/format/plugin.js

     
    3333
    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                                },
    3939
  • _source/plugins/preview/plugin.js

     
    3737                                        '<head>' +
    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() +
    4345                                        '</body></html>';
  • _source/plugins/stylescombo/plugin.js

     
    2626
    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                                        },
    3232
  • _source/plugins/wysiwygarea/plugin.js

     
    560560                                                                        editor.config.docType +
    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' ) +
    566568                                                                                '</style>'+
  • CHANGES.html

     
    4040                New features:</p>
    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>
    4546                Fixed issues:</p>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy