Changeset 715

Show
Ignore:
Timestamp:
02/14/05 01:15:19 (3 years ago)
Author:
aking
Message:

added leading and trailing spaces to the grins - apparently those are needed for the grins to be properly parsed by WP.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-grins/trunk/wp-grins.php

    r229 r715  
    5656            myField.focus(); 
    5757            sel = document.selection.createRange(); 
    58             sel.text = tag
     58            sel.text = ' ' + tag + ' '
    5959            myField.focus(); 
    6060      } 
     
    6464            var cursorPos = endPos; 
    6565            myField.value = myField.value.substring(0, startPos) 
    66                                 + tag 
     66                                + ' ' + tag + ' ' 
    6767                                + myField.value.substring(endPos, myField.value.length); 
    68             cursorPos += tag.length
     68            cursorPos += tag.length + 2
    6969            myField.focus(); 
    7070            myField.selectionStart = cursorPos;