Ticket #1841: 1841.patch

File 1841.patch, 1.4 KB (added by Martin Kou, 12 years ago)
  • editor/dialog/fck_paste.html

     
    3030        <meta name="robots" content="noindex, nofollow" />
    3131        <script src="common/fck_dialog_common.js" type="text/javascript"></script>
    3232        <script type="text/javascript">
    33 var oEditor = window.parent.InnerDialogLoaded() ;
     33var dialog = window.parent ;
     34var oEditor = dialog.InnerDialogLoaded() ;
    3435var FCK = oEditor.FCK;
    3536var FCKTools    = oEditor.FCKTools ;
    3637var FCKConfig   = oEditor.FCKConfig ;
     
    4142        // First of all, translate the dialog box texts
    4243        oEditor.FCKLanguageManager.TranslatePage(document) ;
    4344
    44         var sPastingType = window.parent.Args().CustomValue ;
     45        var sPastingType = dialog.Args().CustomValue ;
    4546
    4647        if ( sPastingType == 'Word' || sPastingType == 'Security' )
    4748        {
     
    9192        if ( sPastingType != 'Word' )
    9293                document.getElementById('oWordCommands').style.display = 'none' ;
    9394
    94         window.parent.SetOkButton( true ) ;
    95         window.parent.SetAutoSize( true ) ;
     95        dialog.SetOkButton( true ) ;
     96        dialog.SetAutoSize( true ) ;
    9697}
    9798
    9899function Ok()
     
    102103
    103104        var sHtml ;
    104105
    105         var sPastingType = window.parent.Args().CustomValue ;
     106        var sPastingType = dialog.Args().CustomValue ;
    106107
    107108        if ( sPastingType == 'Word' || sPastingType == 'Security' )
    108109        {
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy