Use CDATA to avoid validation errors, fixes #3496. Hat tip: JeremyVisser
git-svn-id: http://svn.automattic.com/wordpress/trunk@4691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e03d63d980
commit
05c6094a2b
|
@ -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; ?>")' />
|
<input id='edButtonHTML' class='edButtonBack' type='button' value='<?php _e('Code'); ?>' onclick='switchEditors("<?php echo $id; ?>")' />
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
||||||
document.getElementById('edButtons').style.display = 'block';
|
document.getElementById('edButtons').style.display = 'block';
|
||||||
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -823,6 +825,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||||
<script type="text/javascript">edToolbar()</script>
|
<script type="text/javascript">edToolbar()</script>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
// <![CDATA[
|
||||||
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
if ( typeof tinyMCE != "undefined" && tinyMCE.configs.length > 0 )
|
||||||
document.getElementById("quicktags").style.display="none";
|
document.getElementById("quicktags").style.display="none";
|
||||||
|
|
||||||
|
@ -849,6 +852,7 @@ function the_editor($content, $id = 'content', $prev_id = 'title') {
|
||||||
myField.focus();
|
myField.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// ]]>
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue