X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fwsc%2Fdialogs%2Fwsc.js;h=679e1d96d9c037b7fa863d84956409a7b382e3ab;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=7bc95dd80f97a3b7d3b4aa59b1103bdbbaf46992;hpb=614511639979907ceb0da3614122a4d8eb963ad4;p=ckeditor.git diff --git a/_source/plugins/wsc/dialogs/wsc.js b/_source/plugins/wsc/dialogs/wsc.js index 7bc95dd..679e1d9 100644 --- a/_source/plugins/wsc/dialogs/wsc.js +++ b/_source/plugins/wsc/dialogs/wsc.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -31,7 +31,7 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) ''; var wscCoreUrl = editor.config.wsc_customLoaderScript || ( protocol + - '//loader.spellchecker.net/sproxy_fck/sproxy.php' + '//loader.webspellchecker.net/sproxy_fck/sproxy.php' + '?plugin=fck2' + '&customerid=' + editor.config.wsc_customerId + '&cmd=script&doc=wsc&schema=22' @@ -179,9 +179,14 @@ CKEDITOR.dialog.add( 'checkspell', function( editor ) CKEDITOR.dialog.on( 'resize', function( evt ) { var data = evt.data, - dialog = data.dialog, - height = data.height; + dialog = data.dialog; + + if ( dialog._.name == 'checkspell' ) + { var content = dialog.getContentElement( 'general', 'content' ).getElement(), - iframe = content && content.getChild( 2 ); - iframe && iframe.setStyle( 'height', height + 'px' ); + iframe = content && content.getChild( 2 ); + + iframe && iframe.setSize( 'height', data.height ); + iframe && iframe.setSize( 'width', data.width ); + } });