Location: PHPKode > projects > Community Learning Network > cln/modules/Text/htmlarea/plugins/SpellChecker/spell-check-ui.html

  Strangely, IE sucks with or without the DOCTYPE switch.
  I thought it would only suck without it.


   Spell Checker Plugin for HTMLArea-3.0
   Sponsored by www.americanbible.org
   Implementation by Mihai Bazon, http://dynarch.com/mishoo/
   (c) dynarch.com 2003.
   Distributed under the same terms as HTMLArea itself.
   This notice MUST stay intact for use (see license.txt).

   $Id: spell-check-ui.html,v 1.1 2004/05/13 16:27:25 darcy Exp $

<html xmlns="http://www.w3.org/1999/xhtml">

    <title>Spell Checker</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="spell-check-ui.js"></script>

    <style type="text/css">
      html, body { height: 100%; margin: 0px; padding: 0px; background-color: #fff;
      color: #000; }
      a:link, a:visited { color: #00f; text-decoration: none; }
      a:hover { color: #f00; text-decoration: underline; }

      table { background-color: ButtonFace; color: ButtonText;
      font-family: tahoma,verdana,sans-serif; font-size: 11px; }

      iframe { background-color: #fff; color: #000; height: 100%; width: 100%; }

      .controls { width: 13em; }
      .controls .sectitle { /* background-color: #736c6c; color: #fff;
      border-top: 1px solid #000; border-bottom: 1px solid #fff; */
      text-align: center;
      font-weight: bold; padding: 2px 4px; }
      .controls .secbody { margin-bottom: 10px; }

      button, select { font-family: tahoma,verdana,sans-serif; font-size: 11px; }
      button { width: 6em; padding: 0px; }

      input, select { font-family: fixed,"andale mono",monospace; }

      #v_currentWord { color: #f00; font-weight: bold; }
      #statusbar { padding: 7px 0px 0px 5px; }
      #status { font-weight: bold; }


  <body onload="initDocument()">

    <form style="display: none;" action="spell-check-logic.cgi"
          method="post" target="framecontent"
          ><input type="hidden" name="content" id="f_content"
          /><input type="hidden" name="dictionary" id="f_dictionary"
          /><input type="hidden" name="init" id="f_init" value="1"

    <table style="height: 100%; width: 100%; border-collapse: collapse;" cellspacing="0" cellpadding="0">
        <td colspan="2" style="height: 1em; padding: 2px;">
          <div style="float: right; padding: 2px;"><span>Dictionary</span>
            <select id="v_dictionaries" style="width: 10em"></select>
            <button id="b_recheck">Re-check</button>
          <span id="status">Please wait.  Calling spell checker.</span>
        <td valign="top" class="controls">
          <div class="secbody" style="text-align: center">
            <button id="b_info">Info</button>
          <div class="sectitle">Original word</div>
          <div class="secbody" id="v_currentWord" style="text-align:
          center; margin-bottom: 0px;">pliz weit ;-)</div>
          <div class="secbody" style="text-align: center">
            <button id="b_revert">Revert</button>
          <div class="sectitle">Replace with</div>
          <div class="secbody">
            <input type="text" id="v_replacement" style="width: 94%; margin-left: 3%;" /><br />
            <div style="text-align: center; margin-top: 2px;">
              <button id="b_replace">Replace</button><button
                id="b_replall">Replace all</button><br /><button
                id="b_ignall">Ignore all</button>
          <div class="sectitle">Suggestions</div>
          <div class="secbody">
            <select size="11" style="width: 94%; margin-left: 3%;" id="v_suggestions"></select>

          <iframe src="about:blank" width="100%" height="100%"
            id="i_framecontent" name="framecontent"></iframe>
        <td style="height: 1em;" colspan="2">
          <div style="padding: 4px 2px 2px 2px; float: right;">
            <button id="b_ok">OK</button>
            <button id="b_cancel">Cancel</button>
          <div id="statusbar"></div>


Return current item: Community Learning Network