Install fckeditor b2evolution
From Wickle Wiki
Here is a guide on installing the FCKeditor on the b2evolution.
Contents |
Common to all versions of b2evolution
Download the tarball of FCKeditor from the site: http://www.fckeditor.net/download/ Once you've downloaded the tarball, extract it to the document root of your web server.
So yo will have /FCKeditor on the root of the web server accesible via web.
As things are, you can test fckeditor with the url http://<yoursite>/FCKeditor/_samples/default.html However, we need to make a simple change here so that the changes listed below will work. Rename the /FCKeditor directory to /fckeditor
Plugin version of fckeditor for b2evolution
The FCKeditor Plugin allows you to integrate FCKeditor as a RTE (Rich Text Editor) - also known as WYSIWYG ("What you see is what you get") - for editing items.
README
Recently, I developed the FCKeditor plugin fopr b2evolution (version 1.9.3)
FULL MANUAL at manual.b2evolution.net
Some notes:
The upload directory is defined inside fckeditor, you have 2 options, create a directory weblog/media/ with perms to your apache owner or manually change the files.
- To change the upload directory you must manually change this files
- FCKeditor/editor/filemanager/browser/default/connectors/php/config.php and
- FCKeditor/editor/filemanager/upload/php/config.php
and point the var $Config['UserFilesPath'] to whatever you need,
Default:
$Config['UserFilesPath'] = '/weblog/media/' ;
Download
You can Download the plugin from Sourceforge Mirror or from here
Known Problems
- The plugin does not seem to work with Opera 9.00
- The plugin is not compatible with YouTube Plugin
Version 1.9.3 (Rainforest) of b2evolution
You must edit file inc/VIEW/items/_item_simple.form.php , to insert fckeditor onto the simple editor:
Around line 107 find that:
?> <div class="left_col">
and change for this:
?> <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script> <div class="left_col">
Now we must substitute the textarea from b2 with the textarea from fckeditor, just before ACTIONS section starts: Look for this:
</script> <?php // ------------------------------- ACTIONS ----------------------------------^M echo '<div class="edit_actions">';
and change with this code:
</script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'itemform_post_content' ) ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<?php // ------------------------------- ACTIONS ----------------------------------^M
echo '<div class="edit_actions">';
I make a diff fopr this version, you can download it from here. To apply this you must do this from the directory inc/VIEW/items/:
$ patch -p0 < patch_b2evolution1_9_3_fckeditor.txt
And that's ALL !!! ;)
Version 0.8 of b2evolution
Next, edit admin/_edit_form-php of your b2evolution installlation : before line 13, insert
<script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
And before this line (approx. line 83)... that says :
<!-- ===================== START OF EDIT FORM ================ -->
insert :
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
Then you must deactivate HTML Syntax on the file conf/_formatting.php:
$use_html_checker = 0;
Note that this could be a security bug ... read the docs at b2evolution page.

