Ignore:
Timestamp:
Mar 31, 2010, 6:32:40 PM (14 years ago)
Author:
george
Message:
  • Upraveno: Aktualizace fóra.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/forum/styles/subsilver2/template/editor.js

    r400 r702  
    1717
    1818var baseHeight;
    19 window.onload = initInsertions;
    2019
    2120/**
     
    263262function mozWrap(txtarea, open, close)
    264263{
    265         var selLength = txtarea.textLength;
     264        var selLength = (typeof(txtarea.textLength) == 'undefined') ? txtarea.value.length : txtarea.textLength;
    266265        var selStart = txtarea.selectionStart;
    267266        var selEnd = txtarea.selectionEnd;
     
    278277
    279278        txtarea.value = s1 + open + s2 + close + s3;
    280         txtarea.selectionStart = selEnd + open.length + close.length;
    281         txtarea.selectionEnd = txtarea.selectionStart;
     279        txtarea.selectionStart = selStart + open.length;
     280        txtarea.selectionEnd = selEnd + open.length;
    282281        txtarea.focus();
    283282        txtarea.scrollTop = scrollTop;
Note: See TracChangeset for help on using the changeset viewer.