1
btesec
News 1.6.4 & 1.6.5 editors Review
  • 2010/1/14 15:56

  • btesec

  • Friend of XOOPS

  • Posts: 623

  • Since: 2007/2/20


HI,
Here is my News 1.6.4 & 1.6.5 editors Review. I upgraded from XOOPS 2.3.2b to XOOPS 2.4.3

===============
news 1.6.4
===============
Check editors path in XOOPS installation should be /class/xoopseditor
then under news module look for include/functions.php

following code is how I fixed editors to work you can remove my comments:

// Only for XOOPS 2.0.x
// FCKEditor Working Great- btesec
switch($editor_option) {
case 'fckeditor':
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php')) {
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php');
$editor = new XoopsFormFckeditor(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px'));
}
break;
//Works great-btesec
case 'htmlarea':
if ( is_readable(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php')) {
require_once(XOOPS_ROOT_PATH . '/class/htmlarea/formhtmlarea.php');
$editor = new XoopsFormHtmlarea($caption, $name, $value);
}
break;
// ----- Got it working OK - listed in config as DHTML
case 'dhtml':
case 'dhtmltextarea':
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/dhtmltextarea/dhtmltextarea.php')) {
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/dhtmltextarea/dhtmltextarea.php');
$editor = new XoopsFormDhtmlTextArea($caption, $name, $value, 10, 50, $supplemental);
}
break;

//This is not listed at news config page - listed as compact in config page
case 'textarea':
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/textarea/textarea.php')) {
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/textarea/textarea.php');
$editor = new XoopsFormTextArea($caption, $name, $value, 10, 50, $supplemental);
//$editor = new XoopsFormTextArea($caption, $name, $value);
}
break;
// ---- Tinymce Partially working - btesec - tab lables lanuguage need fix
case 'tinyeditor':
case 'tinymce':
if ( is_readable(XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/formtinymce.php')) {
require_once XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/formtinymce.php';
$editor = new XoopsFormTinymce(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px'));
}
break;
//Koivi is working OK - only the line shown below needs changed
case 'koivi':
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/koivi/formkoivi.php')) {
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/koivi/formkoivi.php');
//$editor = new XoopsFormKoivi($caption, $name, $value, $width, $height, '');
$editor = new XoopsFormKoivi(array('caption'=> $caption, 'name'=>$name, 'value'=>$value, 'width'=>'100%', 'height'=>'400px'));
}
break;
}
return $editor;
}


--------
there are still issues with the editors

1. FCK Editor:The editor works great, there was one issue I came across that had to do with connector.php, had to enable for uploading of images, etc. Also the editor may not display completely if your textarea is narrow, I played but could not fix the issue. The editor has its own image manager feature allows creating folders.

2. TinyMCE: The labels/text for the tabs are not displaying correctly instead you see the code, even for the english language. There is mention in the forums but had no luck in fixing. You can import the images from your XOOPS image manager by drag and drop.
Resized Image

3. Koivi: Koivi has similar issue like Tinymce, for drop down menus you see the code instead of the correct option text. You can also import images from the XOOPS image manager by drag and drop.
Resized Image


Can someone help here.

Never the less all data is saved and displayed correctly using these editors.

=====================
With new 1.65 on XOOPS 2.4.3 by travis from xuups
==================
- This module seems to support only three editors after the upgrade, only Ckeditor works well and looks nice. I have not been able to use the file/image manager 'CKFinder' since I could not enable it even if applied hack mentioned in forums. can someone post the complete steps and code. It would be great to support CKeditor (which is replacing FCKEditor), Tinymce and Koivi.

Seems mods having editor issues after the changes in XOOPS 2.4.x It would be useful if mod developers post patches for the various XOOPS versions that their module should or is intended to work with.

Also there should be a modules upgrade/patching path established the same way that XOOPS core upgrades are released. Would help the non experienced users quite a lot and have less of the same questions asked in the forums, its just a suggestion. Also the XOOPS dev team should test and help patching established/production mods before any final XOOPS version release. We want to make it easy for new and established users to adopt Xoops.

Login

Who's Online

323 user(s) are online (244 user(s) are browsing Support Forums)


Members: 0


Guests: 323


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits