Ticket #6602: ckedit_iphone.diff
File ckedit_iphone.diff, 2.1 KB (added by , 14 years ago) |
---|
-
_source/core/ckeditor_basic.js
82 82 83 83 var createInstance = function( elementOrIdOrName, config, creationFunction, data ) 84 84 { 85 if ( CKEDITOR.env.isCompatible ) 85 if ( !CKEDITOR.env.isTextCompatible ) return null; 86 if ( !CKEDITOR.env.isCompatible ) 86 87 { 87 // Load the full core. 88 if ( CKEDITOR.loadFullCore ) 89 CKEDITOR.loadFullCore(); 90 91 var editor = creationFunction( elementOrIdOrName, config, data ); 92 CKEDITOR.add( editor ); 93 return editor; 88 config.plugins = 'button,enterkey,maximize,' 89 + 'preview,print,resize,save,sourcearea'; 90 config.startupMode = 'source'; 94 91 } 95 92 96 return null; 93 // Load the full core. 94 if ( CKEDITOR.loadFullCore ) 95 CKEDITOR.loadFullCore(); 96 97 var editor = creationFunction( elementOrIdOrName, config, data ); 98 if(!editor) return null; 99 100 CKEDITOR.add( editor ); 101 102 return editor; 97 103 }; 98 104 99 105 /** -
_source/core/env.js
227 227 ( env.air && version >= 1 ) || 228 228 ( env.webkit && version >= 522 ) || 229 229 false ); 230 230 231 231 /** 232 * Indicates that CKEditor is running on a browser capable of text 233 * editing but not necessarily capable of WYSIWYG editing. 234 * @name CKEDITOR.env.isTextCompatible 235 * @type Boolean 236 * @example 237 * if ( CKEDITOR.env.isTextCompatible ) 238 * alert( "Your browser support text editing..." ); 239 */ 240 env.isTextCompatible = ( 241 ( env.ie && version >= 5.5 ) || 242 ( env.gecko && version >= 10500 ) || 243 ( env.opera && version >= 9.2 ) || 244 ( env.air && version >= 1 ) || 245 ( env.webkit && version >= 419.3 ) || 246 false 247 ); 248 249 /** 232 250 * The CSS class to be appended on the main UI containers, making it 233 251 * easy to apply browser specific styles to it. 234 252 * @name CKEDITOR.env.cssClass