Changeset 352


Ignore:
Timestamp:
09/28/05 11:01:10 (14 years ago)
Author:
gocher
Message:

Insert popup Help with keyboard shortcuts (and translation to German)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r342 r352  
    279279  this.imgURL = "images/"; 
    280280  this.popupURL = "popups/"; 
    281   this.helpURL  = _editor_url + "reference.html"; 
    282281 
    283282  // remove tags (these have to be a regexp, or null if this functionality is not desired) 
     
    318317    ["separator","undo","redo","selectall","print"], (HTMLArea.is_gecko ? [] : ["cut","copy","paste","overwrite","saveas"]), 
    319318    ["separator","killword","clearfonts","removeformat","toggleborders","splitblock","lefttoright", "righttoleft"], 
    320     ["separator","htmlmode","about"] 
     319    ["separator","htmlmode","showhelp","about"] 
    321320  ]; 
    322321 
     
    372371   "insert_table": "insert_table.html", 
    373372   "select_color": "select_color.html", 
    374    "about": "about.html" 
     373   "about": "about.html", 
     374   "help": "editor_help.html" 
    375375  }; 
    376376 
     
    34723472      case "insertimage": this._insertImage(); break; 
    34733473      case "about"    : this._popupDialog(editor.config.URIs["about"], null, this); break; 
    3474       case "showhelp" : window.open(this.config.helpURL, "ha_help"); break; 
     3474      case "showhelp" : this._popupDialog(editor.config.URIs["help"], null, this); break; 
    34753475 
    34763476      case "killword": this._wordClean(); break; 
  • trunk/lang/de.js

    r349 r352  
    133133  "button_bold": "de/bold.gif", 
    134134  "button_italic": "de/italic.gif", 
    135   "button_underline": "de/underline.gif" 
     135  "button_underline": "de/underline.gif", 
    136136 
     137  // Editor Help 
     138  "Keybord shortcuts": "TastaturkÃŒrzel", 
     139  "The editor provides the following key combinations:": "Der Editor unterstÃŒtzt die folgenden kombinationen:", 
     140  "new paragraph": "Neuer Absatz(Paragraph)", 
     141  "insert linebreak": "Harter Umbruch einfÃŒgen", 
     142  "Set format to paragraph": "Setze Formatierung auf Absatz", 
     143  "Clean content pasted from Word": "Von Word eingefÃŒgter Text bereinigen", 
     144  "Headings": "Überschrift Typ 1 bis 6", 
     145  "Close": "Schließen" 
    137146}; 
  • trunk/popups/editor_help.html

    r20 r352  
    22 <head> 
    33  <title>Editor Help</title> 
    4   <style> 
    5     body, td, p, div { font-family: arial; font-size: x-small; } 
    6   </style> 
    7  </head> 
    8 <body> 
     4  <script type="text/javascript" src="popup.js"></script> 
     5  <link rel="stylesheet" type="text/css" href="popup.css" /> 
    96 
    10 <h2>Editor Help<hr></h2> 
    11  
    12 Todo... 
     7<script type="text/javascript"> 
     8HTMLArea = window.opener.HTMLArea; 
     9function Init() { 
     10  __dlg_translate('HTMLArea'); 
     11  __dlg_init(); 
     12  window.resizeTo(400, 480); 
     13}; 
    1314 
    1415 
     16function onCancel() { 
     17  __dlg_close(null); 
     18  return false; 
     19}; 
     20 
     21</script> 
     22</head> 
     23 
     24<body class="dialog" onload="Init()"> 
     25<div class="title">Xinha Help</div> 
     26<table width="100%" style="background: white none repeat scroll 0%;"> 
     27  <thead style="border: 1px solid gray; background: silver none repeat scroll 0%;"> 
     28  <tr> 
     29    <th colspan="2">  
     30      <span style="text-align:center">Keyboard shortcuts</span><br /> 
     31      <span>The editor provides the following key combinations:</span> 
     32    </th> 
     33  </tr> 
     34  </thead> 
     35  <tbody> 
     36  <tr><td>ENTER</td><td><span>new paragraph</span>(&lt;P&gt;)</td></tr> 
     37  <tr><td>SHIFT-ENTER</td><td><span>insert linebreak</span>(&lt;BR&gt;)</td></tr> 
     38  <tr><td>CTRL-A</td><td><span>Select all</span></td></tr> 
     39  <tr><td>CTRL-B</td><td><span>Bold</span></td></tr> 
     40  <tr><td>CTRL-I</td><td><span>Italic</span></td></tr> 
     41  <tr><td>CTRL-U</td><td><span>Underline</span></td></tr> 
     42  <tr><td>CTRL-S</td><td><span>Strikethrough</span></td></tr> 
     43  <tr><td>CTRL-L</td><td><span>Justify Left</span></td></tr> 
     44  <tr><td>CTRL-E</td><td><span>Justify Center</span></td></tr> 
     45  <tr><td>CTRL-R</td><td><span>Justify Right</span></td></tr> 
     46  <tr><td>CTRL-J</td><td><span>Justify Full</span></td></tr> 
     47  <tr><td>CTRL-Z</td><td><span>Undoes your last action</span></td></tr> 
     48  <tr><td>CTRL-Y</td><td><span>Redoes your last action</span></td></tr> 
     49  <tr><td>CTRL-N</td><td><span>Set format to paragraph</span></td></tr> 
     50  <tr><td>CTRL-0 (zero)</td><td><span>Clean content pasted from Word</span></td></tr> 
     51  <tr><td>CTRL-1 .. CTRL-6</td><td><span>Headings</span> (&lt;h1&gt; .. &lt;h6&gt;)</td></tr> 
     52  <tr><td>CTRL-X</td><td><span>Cut selection</span></td></tr> 
     53  <tr><td>CTRL-C</td><td><span>Copy selection</span></td></tr> 
     54  <tr><td>CTRL-V</td><td><span>Paste from clipboard</span></td></tr> 
     55  </tbody> 
     56</table> 
     57<div id="buttons"> 
     58  <button type="button" name="cancel" onclick="return onCancel();">Close</button> 
     59</div> 
    1560</body> 
    1661</html> 
Note: See TracChangeset for help on using the changeset viewer.