Support » Plugins » FCKeditor Plugin ChenPress

  • Resolved chweifly


    Q: What’s ChenPress?
    A: It’s a WordPress WYSIWYG plugin which replace the default editor with FCKeditor 2.0 FC.

    Q: What’s the meaning of the plugin name?
    A: "ChenPress" just the combine of my name ChenWei and WordPress.

    Q: Download?
    A: Click here to download ChenPress

    Q: install?

    • Download the zip file and extract the file ‘chenpress.php’ and folder ‘chenpress’ from it.
    • Upload these files to your server and make sure it goes into the ‘wp-content/plugins’ directory.
    • Visit your WordPress administration interface’s Plugins page and activate the plugin.
    • Creat files foders under ‘wp-content’, just like the following structure: 
    • wp-content\files
    • wp-content\files\File
    • wp-content\files\Flash
    • wp-content\files\Image
    • wp-content\files\Media
    • Change the files foders’ properties to 777 use FTP

    Q: Which files have been modified to the default FCKeditor 2.0 FC?
    A: I modified only three files:

    • /fckconfig.js
    • /fckeditor.js
    • /editor/filemanager/browser/mcpuk/connectors/php/config.php

    Q: So, what’s the creative work of ChenPress?
    A: Just the file "chenpress.php", whick combine FCKeditor 2.0 FC to WordPress.

    Q: How could I make ChenPress suitalbe?
    A: Just configuring the following three files:

    • chenpress.php
    • chenpress\fckconfig.js
    • chenpress\editor\filemanager\browser\mcpuk\connectors\php\config.php

    ==== Detail Function Configuration

    Q: Can I change the default location of upload files?
    A: Just open the file: "chenpress\editor\filemanager\browser\mcpuk\connectors\php"
    And modify the parameter: $fckphp_config[‘UserFilesPath’] = "/wordpress/wp-content/files" ;

    Q: Can I change the toolbar?
    A: Just open the file: "chenpress\fckconfig.js"
    And modify the parameter: FCKConfig.ToolbarSets["CPToolbar"] = …

    Q: Can I change the smiley?
    A: Just open the file: "chenpress\fckconfig.js"
    And modify the parameter: FCKConfig.SmileyPath and FCKConfig.SmileyImages

    Q: Where is "quicktags"?
    A: Just open the file: "chenpress.php", and delete the following code:

    // Nuke Quicktages
    function nuke_the_quicktags( $lookmanoqtags ) {
    $lookmanoqtags = preg_replace(‘|<div id="quicktags">.*?</div>|s’, ”, $lookmanoqtags);
    return $lookmanoqtags;}

    Q: Support?
    A: Here 🙂

Viewing 15 replies - 1 through 15 (of 88 total)
  • I install my WP under the root folder /wordpress/, so maybe you need to change the setting:

    $fckphp_config[‘UserFilesPath’] = "/wordpress/wp-content/files" ;

    I also announce ChenPress to WordPress Plugin Competition Blog, but one day has gone, and it still have not been approved:-(

    Need more languages?

    Just open the file: “chenpress\fckconfig.js”
    And modify the parameter: FCKConfig.AutoDetectLanguage = true ;

    Does QuickTags work with ChenPress?

    Is there anyway to toggle between the FCKEditor and usual textarea? (Using javascript)

    If not, it wont work with the WP SpellCheck Plugin.

    Can you make it work with bookmarklet?

    A bug. Back button doesnt work

    ChenPress has a SpellCheck tool.

    IE’s back or ChenPress’ back?

    ChenPress doesn’t work with QuickTags together.
    You can deactivate ChenPress if you need QuickTags.

    FireFox’s back. I feel that if there should be a way to disable the editor thru javacript it would be better.

    FireFox’s back may generate seveal “new post” back because the ChenPress need to replace QuickTags.

    But you can click the dropdown menu to select the page what you need.

    You are right, and wrong. The multiple backs are actually caused by FCEeditor.

    Here’s what I did for myself.

    Under chenpress.php,
    1. Remove “Nuke Quicktages” codes.
    2. Edit onload javascript function. Starting line 44.
    <script type=”text/javascript”>
    function loadfce(){
    var oFCKeditor = new FCKeditor( ‘content’ ) ;
    oFCKeditor.BasePath = “<?php echo $chenpress_path; ?>” ;
    oFCKeditor.Height = “<?php echo $chenpress_size; ?>” ;
    oFCKeditor.ToolbarSet = “Default” ; //CPToolbar
    oFCKeditor.ReplaceTextarea() ;
    document.getElementById(“quicktags”).style.display = “none”;
    var wisi_tags;

    quicktag = document.getElementById(“quicktags”);
    if (quicktag!=null) {
    quicktag.innerHTML += ‘<input type=”button” name=”zz” value=”Use Editor!” onclick=”javascript:loadfce();” />’;


    What it does it that instead of “nuking”, quicktags now have a “Start Editor!” button for using the FCEeditor. Why? Pages loads faster for u to start editing and try editing comments use FCEedtior and you’ll get what I mean.

    That’s all for now. Thanks for packaging chenpress, it should have some nice use for me 😉

    WOW! Thanks, zz85! It’s great!

    There is another great javascript writed by Josef WO which can switch Wisi ON and OFF. But it is just about “WYSIWYG Plugin For WordPress” which use TinyMCE editor. I didn’t know how to use it in FCKeditor.

    Comment by Josef WO � Apr. 6, 2005 @ 5:30 pm

    Hello Joe, thank you to accept my hack of ibrowser – I’m not sure if it is univesal solution but it can help somebody. Now there is a question how to switch Wisi ON and OFF. I have it solved on my site, unfortunatelly there is necessary to hack some wp files:

    Folder: wp-admin, Files edit-form, edit-form-page, edit-form-advanced. Look for row beginning

    <textarea rows=”<?php echo $rows; ?>” cols=”40″ name=”content” tabindex=”5″

    and add just before it the code:

    <input type=”button” name=”wyson” value=”Yes” onclick=”javascript:tinyMCE.execCommand(‘mceAddControl’,false,’content’);” />   
    <input type=”button” name=”wysoff” value=”No” onclick=”javascript:tinyMCE.execCommand(‘mceRemoveControl’,false,’content’);” />

    Advantages: After switch OFF you can use Quicktags as usually. You can add –more– and –nextpage– tags as well as edit HTML directly. Next you can switch back to WYSIWYG and complete your work.

    There is a picture how it looks:

    In Josef WO blog:, there also have some discussion, but I can’t understand the language, Czech.

    Update: ChenPress 2.0!

    change log:
    Repack ChenPress using zz85’s code.

Viewing 15 replies - 1 through 15 (of 88 total)
  • The topic ‘FCKeditor Plugin ChenPress’ is closed to new replies.