Changeset 4466
- Timestamp:
- 11/12/09 15:44:27 (4 years ago)
- Location:
- CKEditor/branches/versions/3.1.x
- Files:
-
- 18 edited
-
CHANGES.html (modified) (1 diff)
-
_source/core/dom/document.js (modified) (1 diff)
-
_source/core/editor.js (modified) (3 diffs)
-
_source/core/resourcemanager.js (modified) (1 diff)
-
_source/core/skins.js (modified) (2 diffs)
-
_source/core/tools.js (modified) (2 diffs)
-
_source/plugins/colorbutton/plugin.js (modified) (1 diff)
-
_source/plugins/dialog/plugin.js (modified) (6 diffs)
-
_source/plugins/font/plugin.js (modified) (1 diff)
-
_source/plugins/format/plugin.js (modified) (1 diff)
-
_source/plugins/menu/plugin.js (modified) (1 diff)
-
_source/plugins/panel/plugin.js (modified) (1 diff)
-
_source/plugins/preview/plugin.js (modified) (1 diff)
-
_source/plugins/stylescombo/plugin.js (modified) (1 diff)
-
_source/plugins/wysiwygarea/plugin.js (modified) (1 diff)
-
_source/skins/kama/skin.js (modified) (1 diff)
-
_source/skins/office2003/skin.js (modified) (1 diff)
-
_source/skins/v2/skin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/versions/3.1.x/CHANGES.html
r4464 r4466 64 64 <li><a href="http://dev.fckeditor.net/ticket/4219">#4219</a> : Added fallback mechanism for config.language.</li> 65 65 <li><a href="http://dev.fckeditor.net/ticket/4194">#4194</a> : Added support for using multiple css style sheets within the editor.</li> 66 <li><a href="http://dev.fckeditor.net/ticket/4463">#4463</a> : Added inline CSS support in all places where custom stylesheet could apply.</li>67 66 </ul> 68 67 <p> -
CKEditor/branches/versions/3.1.x/_source/core/dom/document.js
r4464 r4466 53 53 }, 54 54 55 appendStyleText : function( cssStyleText )56 {57 if ( this.$.createStyleSheet )58 {59 var styleSheet = this.$.createStyleSheet( "" );60 styleSheet.cssText = cssStyleText ;61 }62 else63 {64 var style = new CKEDITOR.dom.element( 'style', this );65 style.append( new CKEDITOR.dom.text( cssStyleText, this ) );66 this.getHead().append( style );67 }68 },69 70 55 createElement : function( name, attribsAndStyles ) 71 56 { -
CKEditor/branches/versions/3.1.x/_source/core/editor.js
r4464 r4466 125 125 126 126 // Load language file. 127 load Skin( editor );127 loadLang( editor ); 128 128 }; 129 129 … … 247 247 // Load the editor skin. 248 248 editor.fire( 'pluginsLoaded' ); 249 load Theme( editor );249 loadSkin( editor ); 250 250 }); 251 251 }); … … 256 256 CKEDITOR.skins.load( editor, 'editor', function() 257 257 { 258 load Lang( editor );258 loadTheme( editor ); 259 259 }); 260 260 }; -
CKEditor/branches/versions/3.1.x/_source/core/resourcemanager.js
r4464 r4466 87 87 throw '[CKEDITOR.resourceManager.add] The resource name "' + name + '" is already registered.'; 88 88 89 CKEDITOR.fire( name + CKEDITOR.tools.capitalize( this.fileName ) + 'Ready', 90 this.registered[ name ] = definition || {} ); 89 this.registered[ name ] = definition || {}; 91 90 }, 92 91 -
CKEditor/branches/versions/3.1.x/_source/core/skins.js
r4464 r4466 44 44 { 45 45 preloaded[ skinName ] = 1; 46 load Part( skinName, part, callback );46 loadedPart( skinName, part, callback ); 47 47 } ); 48 48 return; … … 97 97 if ( !cssIsLoaded ) 98 98 { 99 var cssPart = part.css;99 appendSkinPath( part.css ); 100 100 101 101 for ( var c = 0 ; c < part.css.length ; c++ ) -
CKEditor/branches/versions/3.1.x/_source/core/tools.js
r4464 r4466 99 99 100 100 /** 101 * Turn the first letter of string to upper-case.102 * @param {String} str103 */104 capitalize: function( str )105 {106 return str.charAt( 0 ).toUpperCase() + str.substring( 1 ).toLowerCase();107 },108 109 /**110 101 * Copy the properties from one object to another. By default, properties 111 102 * already present in the target object <strong>are not</strong> overwritten. … … 239 230 240 231 /** 241 * Build the HTML snippet of a set of <style>/<link>.242 * @param css {String|Array} Each of which are url (absolute) of a CSS file or243 * a trunk of style text.244 */245 buildStyleHtml : function ( css )246 {247 css = [].concat( css );248 var item, retval = [];249 for ( var i = 0; i < css.length; i++ )250 {251 item = css[ i ];252 // Is CSS style text ?253 if ( /@import|[{}]/.test(item) )254 retval.push('<style>' + item + '</style>');255 else256 retval.push('<link type="text/css" rel=stylesheet href="' + item + '">');257 }258 return retval.join( '' );259 },260 261 /**262 232 * Replace special HTML characters in a string with their relative HTML 263 233 * entity values. -
CKEditor/branches/versions/3.1.x/_source/plugins/colorbutton/plugin.js
r4464 r4466 32 32 panel : 33 33 { 34 css : editor.skin.editor.css34 css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ] 35 35 }, 36 36 -
CKEditor/branches/versions/3.1.x/_source/plugins/dialog/plugin.js
r4464 r4466 7 7 * @fileOverview The floating dialog plugin. 8 8 */ 9 10 CKEDITOR.plugins.add( 'dialog', 11 { 12 requires : [ 'dialogui' ] 13 }); 9 14 10 15 /** … … 68 73 return null; 69 74 } 75 76 // Stores dialog related data from skin definitions. e.g. margin sizes. 77 var skinData = {}; 70 78 71 79 /** … … 1430 1438 editor = dialog.getParentEditor(), 1431 1439 magnetDistance = editor.config.dialog_magnetDistance, 1432 margins = editor.skin.margins || [ 0, 0, 0, 0 ];1440 margins = skinData[ editor.skinName ].margins || [ 0, 0, 0, 0 ]; 1433 1441 1434 1442 if ( typeof magnetDistance == 'undefined' ) … … 1508 1516 minHeight = definition.minHeight || 0, 1509 1517 resizable = definition.resizable, 1510 margins = dialog.getParentEditor().skin.margins || [ 0, 0, 0, 0 ];1518 margins = skinData[ dialog.getParentEditor().skinName ].margins || [ 0, 0, 0, 0 ]; 1511 1519 1512 1520 function topSizer( coords, dy ) … … 2665 2673 }; 2666 2674 })(); 2675 2676 // Grab the margin data from skin definition and store it away. 2677 CKEDITOR.skins.add = ( function() 2678 { 2679 var original = CKEDITOR.skins.add; 2680 return function( skinName, skinDefinition ) 2681 { 2682 skinData[ skinName ] = { margins : skinDefinition.margins }; 2683 return original.apply( this, arguments ); 2684 }; 2685 } )(); 2667 2686 })(); 2668 2687 … … 2716 2735 return null; 2717 2736 } 2718 });2719 2720 CKEDITOR.plugins.add( 'dialog',2721 {2722 requires : [ 'dialogui' ]2723 2737 }); 2724 2738 -
CKEditor/branches/versions/3.1.x/_source/plugins/font/plugin.js
r4464 r4466 37 37 panel : 38 38 { 39 css : editor.skin.editor.css.concat( config.contentsCss ),39 css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 40 40 voiceLabel : lang.panelVoiceLabel 41 41 }, -
CKEditor/branches/versions/3.1.x/_source/plugins/format/plugin.js
r4464 r4466 34 34 panel : 35 35 { 36 css : editor.skin.editor.css.concat( config.contentsCss ),36 css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 37 37 voiceLabel : lang.panelVoiceLabel 38 38 }, -
CKEditor/branches/versions/3.1.x/_source/plugins/menu/plugin.js
r4464 r4466 133 133 panel = this._.panel = new CKEDITOR.ui.floatPanel( this.editor, CKEDITOR.document.getBody(), 134 134 { 135 css : editor.skin.editor.css,135 css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ], 136 136 level : this._.level - 1, 137 137 className : editor.skinClass + ' cke_contextmenu' -
CKEditor/branches/versions/3.1.x/_source/plugins/panel/plugin.js
r4464 r4466 161 161 // after <body>, so it (body) becames immediatelly 162 162 // available. (#3031) 163 CKEDITOR.tools.buildStyleHtml( this.css )+163 '<link type="text/css" rel=stylesheet href="' + this.css.join( '"><link type="text/css" rel="stylesheet" href="' ) + '">' + 164 164 '<\/html>' ); 165 165 doc.$.close(); -
CKEditor/branches/versions/3.1.x/_source/plugins/preview/plugin.js
r4464 r4466 38 38 baseTag + 39 39 '<title>' + editor.lang.preview + '</title>' + 40 CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + 40 '<link type="text/css" rel="stylesheet" href="' + 41 [].concat( editor.config.contentsCss ).join( '"><link type="text/css" rel="stylesheet" href="' ) + 42 '">' + 41 43 '</head>' + bodyHtml + 42 44 editor.getData() + -
CKEditor/branches/versions/3.1.x/_source/plugins/stylescombo/plugin.js
r4464 r4466 27 27 panel : 28 28 { 29 css : editor.skin.editor.css.concat( config.contentsCss ),29 css : [ CKEDITOR.getUrl( editor.skinPath + 'editor.css' ) ].concat( config.contentsCss ), 30 30 voiceLabel : lang.panelVoiceLabel 31 31 }, -
CKEditor/branches/versions/3.1.x/_source/plugins/wysiwygarea/plugin.js
r4464 r4466 564 564 '<html dir="' + editor.config.contentsLangDirection + '">' + 565 565 '<head>' + 566 CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + 566 '<link type="text/css" rel="stylesheet" href="' + 567 [].concat( editor.config.contentsCss ).join( '"><link type="text/css" rel="stylesheet" href="' ) + 568 '">' + 567 569 '<style type="text/css" _fcktemp="true">' + 568 570 editor._.styles.join( '\n' ) + -
CKEditor/branches/versions/3.1.x/_source/skins/kama/skin.js
r4464 r4466 259 259 }, 260 260 100 ); 261 } );262 } );261 }); 262 } 263 263 264 264 /** -
CKEditor/branches/versions/3.1.x/_source/skins/office2003/skin.js
r4464 r4466 74 74 if ( evt.editor.lang.dir == 'rtl' ) 75 75 setTimeout( fixSize, 1000 ); 76 } );77 } );76 }); 77 } -
CKEditor/branches/versions/3.1.x/_source/skins/v2/skin.js
r4464 r4466 70 70 }, 71 71 100 ); 72 } );73 } );72 }); 73 }
Note: See TracChangeset
for help on using the changeset viewer.
