WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2005 08:37:46 AM (16 years ago)
Author:
matt
Message:

Adding WYSIWYG. Todo: remove all uneccesary stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r2746 r2748  
    99<link rel="stylesheet" href="<?php echo get_settings('siteurl') ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
    1010<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
     11
     12<?php if ( get_option('rich_editing') ) :?>
     13<script type="text/javascript" src="tinymce/tiny_mce_gzip.php"></script>
     14<script type="text/javascript">
     15tinyMCE.init({
     16    mode : "specific_textareas",
     17    textarea_trigger : "title",
     18    theme : "advanced",
     19    theme_advanced_buttons1 : "bold,italic,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,emotions,separator,undo,redo,code",
     20    theme_advanced_buttons2 : "",
     21    theme_advanced_buttons3 : "",
     22    theme_advanced_toolbar_location : "top",
     23    theme_advanced_toolbar_align : "left",
     24    theme_advanced_path_location : "bottom",
     25    entity_encoding : "numeric",
     26    extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|width|height|align],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
     27    plugins : "emotions"
     28});
     29</script>
     30<?php endif; ?>
    1131
    1232<script type="text/javascript">
Note: See TracChangeset for help on using the changeset viewer.