Changeset 4174


Ignore:
Timestamp:
09/01/09 14:05:59 (5 years ago)
Author:
tobiasz.cudnik
Message:

Fixed #3370 - Use CKEDITOR.env.isCustomDomain().

Location:
CKEditor/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r4173 r4174  
    5555                <li><a href="http://dev.fckeditor.net/ticket/3856">#3856</a> : Fixed focus and blur events in source view mode.</li> 
    5656                <li><a href="http://dev.fckeditor.net/ticket/3438">#3438</a> : Floating panels are off by (-1px, 0px) in RTL mode.</li> 
     57                <li><a href="http://dev.fckeditor.net/ticket/3370">#3370</a> : Refactored use of CKEDITOR.env.isCustomDomain().</li> 
    5758        </ul> 
    5859        <h3> 
  • CKEditor/trunk/_source/plugins/clipboard/dialogs/paste.js

    r3985 r4174  
    66CKEDITOR.dialog.add( 'paste', function( editor ) 
    77{ 
    8         var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; 
     8        var isCustomDomain = CKEDITOR.env.isCustomDomain(); 
    99 
    1010        return { 
  • CKEditor/trunk/_source/plugins/dialogui/plugin.js

    r4026 r4174  
    598598 
    599599                                        // Support for custom document.domain in IE. 
    600                                         var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; 
     600                                        var isCustomDomain = CKEDITOR.env.isCustomDomain(); 
    601601 
    602602                                        var html = [ 
  • CKEditor/trunk/_source/plugins/pastefromword/dialogs/pastefromword.js

    r3963 r4174  
    194194                                container.setStyle( 'height', ( iframe.$.offsetHeight + 2 ) + 'px' ); 
    195195 
    196                         var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; 
    197                         if ( isCustomDomain ) 
     196                        if ( CKEDITOR.env.isCustomDomain() ) 
    198197                        { 
    199198                                CKEDITOR._cke_htmlToLoad = this.definition.htmlToLoad; 
  • CKEditor/trunk/_source/plugins/preview/plugin.js

    r3657 r4174  
    1717                { 
    1818                        var sHTML, 
    19                                 isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; 
     19                                isCustomDomain = CKEDITOR.env.isCustomDomain(); 
    2020                        if ( editor.config.fullPage ) 
    2121                                sHTML = editor.getData(); 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy