root/trunk/kbs_bbs/doc/htmlarea-3.0-rc1.diff
| Revision 7853, 2.2 KB (checked in by atppp, 6 years ago) | |
|---|---|
|
|
-
htmlarea.js
diff -Naur htmlarea3rc1/htmlarea.js htmlarea/htmlarea.js
old new 654 654 // call previous submit methods if they were there. 655 655 if (typeof a != "undefined") { 656 656 for (var i in a) { 657 a[i]();657 if (!a[i]()) return false; 658 658 } 659 659 } 660 return true; 660 661 }; 661 662 } 662 663 … … 1467 1468 var value = param[field]; 1468 1469 switch (field) { 1469 1470 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; 1470 1473 case "f_border" : img.border = parseInt(value || "0"); break; 1471 1474 case "f_align" : img.align = value; break; 1472 1475 case "f_vert" : img.vspace = parseInt(value || "0"); break; … … 1678 1681 case 'j': cmd = "justifyfull"; break; 1679 1682 case 'z': cmd = "undo"; break; 1680 1683 case 'y': cmd = "redo"; break; 1681 case 'v': cmd = "paste"; break;1684 //case 'v': cmd = "paste"; break; 1682 1685 1683 1686 case '0': cmd = "killword"; break; 1684 1687 -
popups/insert_image.html
diff -Naur htmlarea3rc1/popups/insert_image.html htmlarea/popups/insert_image.html
old new 37 37 } 38 38 } 39 39 // 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", 41 41 "f_horiz", "f_vert"]; 42 42 var param = new Object(); 43 43 for (var i in fields) { … … 119 119 <td><input type="text" name="alt" id="f_alt" style="width:100%" 120 120 title="For browsers that don't support images" /></td> 121 121 </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> 122 129 123 130 </tbody> 124 131 </table>
Note: See TracBrowser
for help on using the browser.
