Dotclear

Changeset 3643:80218ff3fd06


Ignore:
Timestamp:
01/01/18 14:26:58 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Better this way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js

    r3642 r3643  
    281281                    this.textarea.setSelectionRange(start + subst.length, start + subst.length); 
    282282               } else { 
    283                     if (typeof(fn) == 'function') { 
    284                          this.textarea.caretPos -= start + subst.length; 
    285                     } else { 
     283                    if (typeof(fn) != 'function') { 
    286284                         this.textarea.setSelectionRange(start + prefix.length, start + prefix.length); 
    287285                    } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map