fck_spellerpages.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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-2010 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. var oEditor = window.parent.InnerDialogLoaded() ;
  33. var FCKLang = oEditor.FCKLang ;
  34. window.onload = function()
  35. {
  36. document.getElementById('txtHtml').value = oEditor.FCK.EditorDocument.body.innerHTML ;
  37. var oSpeller = new spellChecker( document.getElementById('txtHtml') ) ;
  38. oSpeller.spellCheckScript = oEditor.FCKConfig.SpellerPagesServerScript || 'server-scripts/spellchecker.php' ;
  39. oSpeller.OnFinished = oSpeller_OnFinished ;
  40. oSpeller.openChecker() ;
  41. }
  42. function OnSpellerControlsLoad( controlsWindow )
  43. {
  44. // Translate the dialog box texts
  45. oEditor.FCKLanguageManager.TranslatePage( controlsWindow.document ) ;
  46. }
  47. function oSpeller_OnFinished( numberOCorrections )
  48. {
  49. if ( numberOCorrections > 0 )
  50. {
  51. oEditor.FCKUndo.SaveUndoStep() ;
  52. oEditor.FCK.EditorDocument.body.innerHTML = document.getElementById('txtHtml').value ;
  53. if ( oEditor.FCKBrowserInfo.IsIE )
  54. oEditor.FCKSelection.Collapse( true ) ;
  55. }
  56. window.parent.Cancel() ;
  57. }
  58. </script>
  59. <style type="text/css">
  60. body, td, input, textarea, select, label { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; }
  61. </style>
  62. </head>
  63. <body style="OVERFLOW: hidden" scroll="no" style="padding:0px;">
  64. <input type="hidden" id="txtHtml" value="">
  65. <iframe id="frmSpell" src="javascript:void(0)" name="spellchecker" width="100%" height="100%" frameborder="0"></iframe>
  66. </body>
  67. </html>