Spell Check
var oEditor = window.parent.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
window.onload = function()
{
document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
oSpeller.OnFinished = oSpeller_OnFinished ;
oSpeller.openChecker() ;
}
function OnSpellerControlsLoad( controlsWindow )
{
// Translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
}
function oSpeller_OnFinished( numberOCorrections )
{
if ( numberOCorrections > 0 )
oEditor.FCK.SetData( document.getElementById('txtHtml').value ) ;
window.parent.Cancel() ;
}
Wyszukiwarka
Podobne podstrony:
fck spellerpagesfck anchorfck pastefck templatefck radiobuttonfck anchorwięcej podobnych podstron