Adding tinyMCE Editor for custom field when editing post page
-
So after hours of trying to figure out the right way to add the tiny MCE editor to a custom box in the edit post page, I finally dived into the More Fields plugin to see how they do it and I hope they don’t me posting this, but this is how:
<script type=”text/javascript”>
jQuery(document).ready(function() {
jQuery(“#textareaID”).addClass(“mceEditor”);
if ( typeof( tinyMCE ) == “object” && typeof( tinyMCE.execCommand ) == “function” ) {
tinyMCE.execCommand(“mceAddControl”, false, “textareaID”);
}});
</script><textarea class=”textareaID” name=’textareaID’ id=’textareaID’>
blah blah
</textarea>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adding tinyMCE Editor for custom field when editing post page’ is closed to new replies.