Ticket #4194: 4194.patch
File 4194.patch, 5.2 KB (added by , 14 years ago) |
---|
-
_source/core/config.js
63 63 baseHref : '', 64 64 65 65 /** 66 * The CSS file to be used to apply style to the contents. It should66 * The CSS file(s) to be used to apply style to the contents. It should 67 67 * reflect the CSS used in the final pages where the contents are to be 68 68 * used. 69 * @type String 69 * @type String|Array 70 70 * @default '<CKEditor folder>/contents.css' 71 71 * @example 72 72 * config.contentsCss = '/css/mysitestyles.css'; 73 * config.contentsCss = ['/css/mysitestyles.css', '/css/anotherfile.css']; 73 74 */ 74 75 contentsCss : CKEDITOR.basePath + 'contents.css', 75 76 -
_source/plugins/font/plugin.js
11 11 12 12 // Gets the list of fonts from the settings. 13 13 var names = entries.split( ';' ), 14 editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ), 14 15 values = []; 15 16 16 17 // Create style objects for all fonts. … … 36 37 37 38 panel : 38 39 { 39 css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' )],40 css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ], 40 41 voiceLabel : lang.panelVoiceLabel 41 42 }, 42 43 -
_source/plugins/format/plugin.js
10 10 init : function( editor ) 11 11 { 12 12 var config = editor.config, 13 editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ), 13 14 lang = editor.lang.format; 14 15 15 16 // Gets the list of tags from the settings. … … 33 34 34 35 panel : 35 36 { 36 css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' )],37 css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ], 37 38 voiceLabel : lang.panelVoiceLabel 38 39 }, 39 40 -
_source/plugins/preview/plugin.js
37 37 '<head>' + 38 38 baseTag + 39 39 '<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 '">' + 41 43 '</head>' + bodyHtml + 42 44 editor.getData() + 43 45 '</body></html>'; -
_source/plugins/stylescombo/plugin.js
12 12 init : function( editor ) 13 13 { 14 14 var config = editor.config, 15 editorCss = CKEDITOR.getUrl( editor.skinPath + 'editor.css' ), 15 16 lang = editor.lang.stylesCombo, 16 17 pluginPath = this.path, 17 18 styles; … … 26 27 27 28 panel : 28 29 { 29 css : [ config.contentsCss, CKEDITOR.getUrl( editor.skinPath + 'editor.css' )],30 css : CKEDITOR.tools.isArray( config.contentsCss ) ? config.contentsCss.concat( editorCss ) : [ config.contentsCss, editorCss ], 30 31 voiceLabel : lang.panelVoiceLabel 31 32 }, 32 33 -
_source/plugins/wysiwygarea/plugin.js
526 526 editor.config.docType + 527 527 '<html dir="' + editor.config.contentsLangDirection + '">' + 528 528 '<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 '">' + 530 532 '<style type="text/css" _fcktemp="true">' + 531 533 editor._.styles.join( '\n' ) + 532 534 '</style>'+ -
CHANGES.html
40 40 New features:</p> 41 41 <ul> 42 42 <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> 43 44 </ul> 44 45 <p> 45 46 Fixed issues:</p>