Ticket #4194: 4194.patch

File 4194.patch, 5.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

     
    1111
    1212                // Gets the list of fonts from the settings.
    1313                var names = entries.split( ';' ),
     14                        editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ),
    1415                        values = [];
    1516
    1617                // Create style objects for all fonts.
     
    3637
    3738                                panel :
    3839                                {
    39                                         css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ],
     40                                        css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ],
    4041                                        voiceLabel : lang.panelVoiceLabel
    4142                                },
    4243
  • _source/plugins/format/plugin.js

     
    1010        init : function( editor )
    1111        {
    1212                var config = editor.config,
     13                        editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ),
    1314                        lang = editor.lang.format;
    1415
    1516                // Gets the list of tags from the settings.
     
    3334
    3435                                panel :
    3536                                {
    36                                         css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ],
     37                                        css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ],
    3738                                        voiceLabel : lang.panelVoiceLabel
    3839                                },
    3940
  • _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                                        ( CKEDITOR.tools.isArray( editor.config.contentsCss ) ? editor.config.contentsCss.join( '"><link type="text/css" rel="stylesheet" href="' ) : editor.config.contentsCss ) +
     42                                        '">' +
    4143                                        '</head>' + bodyHtml +
    4244                                        editor.getData() +
    4345                                        '</body></html>';
  • _source/plugins/stylescombo/plugin.js

     
    1212                init : function( editor )
    1313                {
    1414                        var config = editor.config,
     15                                editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ),
    1516                                lang = editor.lang.stylesCombo,
    1617                                pluginPath = this.path,
    1718                                styles;
     
    2627
    2728                                        panel :
    2829                                        {
    29                                                 css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ],
     30                                                css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ],
    3031                                                voiceLabel : lang.panelVoiceLabel
    3132                                        },
    3233
  • _source/plugins/wysiwygarea/plugin.js

     
    526526                                                                        editor.config.docType +
    527527                                                                        '<html dir="' + editor.config.contentsLangDirection + '">' +
    528528                                                                        '<head>' +
    529                                                                                 '<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _fcktemp="true"/>' +
     529                                                                                '<link type="text/css" rel="stylesheet" href="' +
     530                                                                                ( CKEDITOR.tools.isArray( editor.config.contentsCss ) ? editor.config.contentsCss.join( '"><link type="text/css" rel="stylesheet" href="' ) : editor.config.contentsCss ) +
     531                                                                                '">' +
    530532                                                                                '<style type="text/css" _fcktemp="true">' +
    531533                                                                                        editor._.styles.join( '\n' ) +
    532534                                                                                '</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