Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_editor

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
850                } else {
851                     myField.value += myValue;
852                     myField.focus();
853                }
854           }
855      // ]]>
856      </script>
857      <?php
858
859      $the_editor = apply_filters('the_editor', "<div><textarea class='mceEditor' $rows cols='40' name='$id' tabindex='2' id='$id'>%s</textarea></div>\n");
860      $the_editor_content = apply_filters('the_editor_content', $content);
861
862      printf($the_editor, $the_editor_content);
863
864      ?>
865      <script type="text/javascript">
866      //<!--
867      edCanvas = document.getElementById('<?php echo $id; ?>');
868      <?php if ( $prev_id && user_can_richedit() ) : ?>