Quicktags: fix int/string strict comparison, see #26046.
Built from https://develop.svn.wordpress.org/trunk@26553 git-svn-id: http://core.svn.wordpress.org/trunk@26444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3b706af9c3
commit
b88583c567
|
@ -373,7 +373,7 @@ function edButton(id, display, tagStart, tagEnd, access) {
|
|||
sel = document.selection.createRange();
|
||||
sel.text = content;
|
||||
canvas.focus();
|
||||
} else if ( canvas.selectionStart || canvas.selectionStart === '0' ) { // FF, WebKit, Opera
|
||||
} else if ( canvas.selectionStart || canvas.selectionStart === 0 ) { // FF, WebKit, Opera
|
||||
text = canvas.value;
|
||||
startPos = canvas.selectionStart;
|
||||
endPos = canvas.selectionEnd;
|
||||
|
@ -472,7 +472,7 @@ function edButton(id, display, tagStart, tagEnd, access) {
|
|||
}
|
||||
}
|
||||
canvas.focus();
|
||||
} else if ( canvas.selectionStart || canvas.selectionStart === '0' ) { // FF, WebKit, Opera
|
||||
} else if ( canvas.selectionStart || canvas.selectionStart === 0 ) { // FF, WebKit, Opera
|
||||
startPos = canvas.selectionStart;
|
||||
endPos = canvas.selectionEnd;
|
||||
cursorPos = endPos;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue