root/trunk/kbs_bbs/doc/htmlarea-3.0-rc1.diff

Revision 7853, 2.2 KB (checked in by atppp, 6 years ago)

htmlarea word cleaner SUCKS

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • htmlarea.js

    diff -Naur htmlarea3rc1/htmlarea.js htmlarea/htmlarea.js
    old new  
    654654                        // call previous submit methods if they were there. 
    655655                        if (typeof a != "undefined") { 
    656656                                for (var i in a) { 
    657                                         a[i](); 
     657                                        if (!a[i]()) return false; 
    658658                                } 
    659659                        } 
     660                        return true; 
    660661                }; 
    661662        } 
    662663 
     
    14671468                        var value = param[field]; 
    14681469                        switch (field) { 
    14691470                            case "f_alt"    : img.alt    = value; break; 
     1471                                case "f_width"  : p = parseInt(value || "0"); if (p > 0) img.width = p; break; 
     1472                                case "f_height" : p = parseInt(value || "0"); if (p > 0) img.height = p; break; 
    14701473                            case "f_border" : img.border = parseInt(value || "0"); break; 
    14711474                            case "f_align"  : img.align  = value; break; 
    14721475                            case "f_vert"   : img.vspace = parseInt(value || "0"); break; 
     
    16781681                    case 'j': cmd = "justifyfull"; break; 
    16791682                    case 'z': cmd = "undo"; break; 
    16801683                    case 'y': cmd = "redo"; break; 
    1681                     case 'v': cmd = "paste"; break; 
     1684                    //case 'v': cmd = "paste"; break; 
    16821685 
    16831686                    case '0': cmd = "killword"; break; 
    16841687 
  • popups/insert_image.html

    diff -Naur htmlarea3rc1/popups/insert_image.html htmlarea/popups/insert_image.html
    old new  
    3737    } 
    3838  } 
    3939  // pass data back to the calling window 
    40   var fields = ["f_url", "f_alt", "f_align", "f_border", 
     40  var fields = ["f_url", "f_alt", "f_width" , "f_height" , "f_align", "f_border", 
    4141                "f_horiz", "f_vert"]; 
    4242  var param = new Object(); 
    4343  for (var i in fields) { 
     
    119119    <td><input type="text" name="alt" id="f_alt" style="width:100%" 
    120120      title="For browsers that don't support images" /></td> 
    121121  </tr> 
     122  <tr> 
     123    <td style="width: 7em; text-align: right">Image Size:</td> 
     124    <td> 
     125    Width:  <input type="text" name="width" id="f_width" style="width:20%" title="Width of the Image" /> 
     126    Height: <input type="text" name="height" id="f_height" style="width:20%" title="Height of the Image" /> 
     127    </td> 
     128  </tr> 
    122129 
    123130  </tbody> 
    124131</table> 
Note: See TracBrowser for help on using the browser.