Dotclear

Changeset 3642:7b5fba5faea7


Ignore:
Timestamp:
01/01/18 14:20:30 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Set caret et the end of the inserted thing (img, url, blockquote, …) in Legacy editor if current selection is empty

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    r3639 r3642  
    1414* Fix: Cope with MySQLi connection via socket 
    1515* Fix: Error messages markup and styling 
     16* Fix: Set caret et the end of the inserted thing (img, url, blockquote, …) in Legacy editor if current selection is empty 
    1617* 🐛 → Various bugs and typos fixed 
    1718* 🌼 → Some locales and cosmetic adjustments 
  • plugins/dcLegacyEditor/js/jsToolBar/jsToolBar.js

    r3361 r3642  
    281281                    this.textarea.setSelectionRange(start + subst.length, start + subst.length); 
    282282               } else { 
    283                     this.textarea.setSelectionRange(start + prefix.length, start + prefix.length); 
     283                    if (typeof(fn) == 'function') { 
     284                         this.textarea.caretPos -= start + subst.length; 
     285                    } else { 
     286                         this.textarea.setSelectionRange(start + prefix.length, start + prefix.length); 
     287                    } 
    284288               } 
    285289               this.textarea.scrollTop = scrollPos; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map