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:
parent
7851a229db
commit
85892d3aab
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user