Index: branches/wmf/1.16wmf4/skins/common/edit.js |
— | — | @@ -78,7 +78,7 @@ |
79 | 79 | // apply tagOpen/tagClose to selection in textarea, |
80 | 80 | // use sampleText instead of selection if there is none |
81 | 81 | function insertTags( tagOpen, tagClose, sampleText ) { |
82 | | - if ( typeof $j != 'undefined' && typeof $j.fn.textSelection != 'undefined' && |
| 82 | + if ( typeof $j != 'undefined' && typeof $j.fn.textSelection != 'undefined' && currentFocused && |
83 | 83 | ( currentFocused.nodeName.toLowerCase() == 'iframe' || currentFocused.id == 'wpTextbox1' ) ) { |
84 | 84 | $j( '#wpTextbox1' ).textSelection( |
85 | 85 | 'encapsulateSelection', { 'pre': tagOpen, 'peri': sampleText, 'post': tagClose } |
Property changes on: branches/wmf/1.16wmf4/skins/common/edit.js |
___________________________________________________________________ |
Added: svn:mergeinfo |
86 | 86 | Merged /trunk/phase3/skins/common/edit.js:r63545-63546,63549,63643,63764,63897-63901,65015,65387,65391,65555,65590,65774,67836,77555,77558-77560,77563-77565,77573,79865 |
87 | 87 | Merged /branches/wmf-deployment/skins/common/edit.js:r60970 |