[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/fckeditor/fckeditor/editor/dialog/ -> fck_spellerpages.html (source)

   1  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
   2  <!--
   3   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   4   * Copyright (C) 2003-2009 Frederico Caldeira Knabben
   5   *
   6   * == BEGIN LICENSE ==
   7   *
   8   * Licensed under the terms of any of the following licenses at your
   9   * choice:
  10   *
  11   *  - GNU General Public License Version 2 or later (the "GPL")
  12   *    http://www.gnu.org/licenses/gpl.html
  13   *
  14   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15   *    http://www.gnu.org/licenses/lgpl.html
  16   *
  17   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  18   *    http://www.mozilla.org/MPL/MPL-1.1.html
  19   *
  20   * == END LICENSE ==
  21   *
  22   * Spell Check dialog window.
  23  -->
  24  <html>
  25      <head>
  26          <title>Spell Check</title>
  27          <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  28          <meta content="noindex, nofollow" name="robots">
  29          <script src="common/fck_dialog_common.js" type="text/javascript"></script>
  30          <script src="fck_spellerpages/spellerpages/spellChecker.js"></script>
  31          <script type="text/javascript">
  32  
  33  var oEditor = window.parent.InnerDialogLoaded() ;
  34  var FCKLang = oEditor.FCKLang ;
  35  
  36  window.onload = function()
  37  {
  38      document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
  39  
  40      var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
  41      oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
  42      oSpeller.OnFinished = oSpeller_OnFinished ;
  43      oSpeller.openChecker() ;
  44  }
  45  
  46  function OnSpellerControlsLoad( controlsWindow )
  47  {
  48      // Translate the dialog box texts

  49      oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
  50  }
  51  
  52  function oSpeller_OnFinished( numberOCorrections )
  53  {
  54      if ( numberOCorrections > 0 )
  55      {
  56          oEditor.FCKUndo.SaveUndoStep() ;
  57          oEditor.FCK.EditorDocument.body.innerHTML = document.getElementById('txtHtml').value ;
  58          if ( oEditor.FCKBrowserInfo.IsIE )
  59              oEditor.FCKSelection.Collapse( true ) ;
  60      }
  61      window.parent.Cancel() ;
  62  }
  63  
  64          </script>
  65      </head>
  66      <body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
  67          <input type="hidden" id="txtHtml" value="">
  68          <iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>
  69      </body>
  70  </html>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7