• As I have installed WordPress 2.1 on several hosting sites, it appears that some limitations of the hosting services prevent WordPress 2.1 from working properly.

    One way to force it is to insert in /wp-includes/general-template.php after “
    <style type=”text/css”>
    #postdivrich table, #postdivrich #quicktags {border-top: none;}
    #quicktags {border-bottom: none; padding-bottom: 2px; margin-bottom: -1px;}
    #edButtons {border-bottom: 1px solid #ccc;}
    </style>

    this

    <script language=”javascript” type=”text/javascript”>
    tinyMCE.init({
    mode : “textareas”,
    theme : “advanced”,
    plugins : “devkit,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras”,
    theme_advanced_buttons1_add_before : “save,newdocument,separator”,
    theme_advanced_buttons1_add : “fontselect,fontsizeselect”,
    theme_advanced_buttons2_add : “separator,insertdate,inserttime,preview,separator,forecolor,backcolor,advsearchreplace”,
    theme_advanced_buttons2_add_before: “cut,copy,paste,pastetext,pasteword,separator,search,replace,separator”,
    theme_advanced_buttons3_add_before : “tablecontrols,separator”,
    theme_advanced_buttons3_add : “emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen”,
    theme_advanced_buttons4 : “insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking”,
    theme_advanced_toolbar_location : “top”,
    theme_advanced_toolbar_align : “left”,
    theme_advanced_path_location : “bottom”,
    content_css : “../wp-includes/js/tinymce/plugins/wordpress/wordpress.css”,
    plugin_insertdate_dateFormat : “%Y-%m-%d”,
    plugin_insertdate_timeFormat : “%H:%M:%S”,
    extended_valid_elements : “hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]”,

    external_link_list_url : “example_link_list.js”,
    external_image_list_url : “example_image_list.js”,
    flash_external_list_url : “example_flash_list.js”,
    media_external_list_url : “example_media_list.js”,
    file_browser_callback : “fileBrowserCallBack”,
    theme_advanced_resize_horizontal : false,
    theme_advanced_resizing : true,
    nonbreaking_force_tab : true,
    apply_source_formatting : true,
    convert_urls : false,
    relative_urls : false,
    remove_script_host : false,
    force_p_newlines : true,
    force_br_newlines : false,
    convert_newlines_to_brs : false,
    remove_linebreaks : false,
    fix_list_elements : true,
    entities : “38,amp,60,lt,62,gt”

    });

    function fileBrowserCallBack(field_name, url, type, win) {
    // This is where you insert your custom filebrowser logic
    alert(“Example of filebrowser callback: field_name: ” + field_name + “, url: ” + url + “, type: ” + type);

    // Insert new URL, this would normaly be done in a popup
    //win.document.forms[0].elements[field_name].value = “someurl.htm”;
    }
    </script>

    This quite straightforward but I have no time to read all the wordpress code, so, it will do it until wordpress has solved the issue

Viewing 1 replies (of 1 total)
  • Thread Starter anonislis

    (@anonislis)

    Forget about this one.
    Actually the problem comes from /wp-includes/js/tinymce/tiny_mce_config.php

    header(“Content-type: text/javascript; charset: UTF-8”); is required otherwise the ads supported websites will add their ads after.

    So just insert “header(“Content-type: text/javascript; charset: UTF-8″);” after “@ require(‘../../../wp-config.php’);” in this file and it will do it!

Viewing 1 replies (of 1 total)
  • The topic ‘WYSIWYG not working on 2.1’ is closed to new replies.