Use CDATA to avoid validation errors, fixes #3496. Hat tip: JeremyVisser

git-svn-id: https://develop.svn.wordpress.org/trunk@4691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2007-01-07 02:25:03 +00:00
parent 7851a229db
commit 85892d3aab
1 changed files with 4 additions and 0 deletions

View File

@ -813,8 +813,10 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
<input id='edButtonHTML' class='edButtonBack' type='button' value='<?php _e('Code'); ?>' onclick='switchEditors("<?php echo $id; ?>")' />
</div>
<script type="text/javascript">
// <![CDATA[
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
document.getElementById('edButtons').style.display = 'block';
// ]]>
</script>
<?php endif; ?>
@ -823,6 +825,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
<script type="text/javascript">edToolbar()</script>
</div>
<script type="text/javascript">
// <![CDATA[
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
document.getElementById("quicktags").style.display="none";
@ -849,6 +852,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
myField.focus();
}
}
// ]]>
</script>
<?php