/[webpac2]/Webpacus/root/editor/quicktags.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/root/editor/quicktags.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 187 by dpavlin, Sun Nov 27 15:14:54 2005 UTC revision 188 by dpavlin, Mon Nov 28 17:12:05 2005 UTC
# Line 194  function edToolbar( name ) { Line 194  function edToolbar( name ) {
194    
195  function edInsertTag(myField, i) {  function edInsertTag(myField, i) {
196    
197            var pos = myField.scrollTop;
198            Logger.debug('edInsertTag "'+i+'", scrollTop='+pos);
199    
200          //IE support          //IE support
201          if (document.selection) {          if (document.selection) {
202                  myField.focus();                  myField.focus();
# Line 260  function edInsertTag(myField, i) { Line 263  function edInsertTag(myField, i) {
263                  }                  }
264                  myField.focus();                  myField.focus();
265          }          }
266    
267            if (pos && myField.scrollTop != pos) myField.scrollTop = pos;
268  }  }
269    
270  function edInsertContent(myField, myValue) {  function edInsertContent(myField, myValue) {
271    
272            var pos = myField.scrollTop;
273    
274            Logger.debug('edInsertContent "'+myValue+'", scrollTop='+pos);
275          //IE support          //IE support
276          if (document.selection) {          if (document.selection) {
277                  myField.focus();                  myField.focus();
# Line 284  function edInsertContent(myField, myValu Line 293  function edInsertContent(myField, myValu
293                  myField.value += myValue;                  myField.value += myValue;
294                  myField.focus();                  myField.focus();
295          }          }
296    
297            if (pos && myField.scrollTop != pos) myField.scrollTop = pos;
298  }  }
299    
300  function edInsertLink(myField, i, defaultValue) {  function edInsertLink(myField, i, defaultValue) {

Legend:
Removed from v.187  
changed lines
  Added in v.188

  ViewVC Help
Powered by ViewVC 1.1.26