Remove redundant declaration ofedInsertContent. Props Viper007Bond. fixes #4902

git-svn-id: https://develop.svn.wordpress.org/trunk@6045 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-09-05 23:14:39 +00:00
parent 40fe936687
commit 9efd32a426
1 changed files with 0 additions and 24 deletions

View File

@ -887,30 +887,6 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
// <![CDATA[
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
document.getElementById("quicktags").style.display="none";
function edInsertContent(myField, myValue) {
//IE support
if (document.selection) {
myField.focus();
sel = document.selection.createRange();
sel.text = myValue;
myField.focus();
}
//MOZILLA/NETSCAPE support
else if (myField.selectionStart || myField.selectionStart == "0") {
var startPos = myField.selectionStart;
var endPos = myField.selectionEnd;
myField.value = myField.value.substring(0, startPos)
+ myValue
+ myField.value.substring(endPos, myField.value.length);
myField.focus();
myField.selectionStart = startPos + myValue.length;
myField.selectionEnd = startPos + myValue.length;
} else {
myField.value += myValue;
myField.focus();
}
}
// ]]>
</script>
<?php