1
maotouying
Re: HTML Editor
  • 2008/10/24 7:54

  • maotouying

  • Just popping in

  • Posts: 4

  • Since: 2006/4/7 1


Thanks for all your time and your help, I really appreciate your assistance, however, I am afraid, that the hacks offered are a little bit too much for my skills. I will rather wait for some official patches or updates, which are hopefully consistent allover the XOOPS-modules and -packages.

Take care ...



2
maotouying
Re: HTML Editor
  • 2008/10/23 15:50

  • maotouying

  • Just popping in

  • Posts: 4

  • Since: 2006/4/7 1


See this is what I did and XOOPS didn't restart any more :


/**
* Retreive an editor according to the module's option "form_options"
*/

/** Comment the old news_getWysiwygForm function
* function &news_getWysiwygForm($caption, $name, $value = '', $width = '100%', $height = '400px', $supplemental='')
* {
* $editor = false;
* $x22=false;
* $xv=str_replace('XOOPS ','',XOOPS_VERSION);
* if(substr($xv,2,1)=='2') {
* $x22=true;
* }
*
* $editor_configs=array();
* $editor_configs['name'] =$name;
* $editor_configs['value'] = $value;
* $editor_configs['rows'] = 35;
* $editor_configs['cols'] = 60;
* $editor_configs['width'] = '100%';
* $editor_configs['height'] = '400px';
*/
function &news_getWysiwygForm($caption, $name, $value = '', $rows = 35, $cols = 60, $supplemental='')
{
$editor_configs = array();
$editor_configs['name'] = $name;
$editor_configs['value'] = $value;
$editor_configs['rows'] = $rows ? $rows : 35;
$editor_configs['cols'] = $cols ? $cols : 60;
$editor_configs['width'] = "100%";
$editor_configs['height'] = "400px";

$editor = new XoopsFormEditor($caption, news_getmoduleoption('form_options'), $editor_configs);
return $editor;
}



3
maotouying
Re: HTML Editor
  • 2008/10/23 10:16

  • maotouying

  • Just popping in

  • Posts: 4

  • Since: 2006/4/7 1


Thanks for your quick replies. See this is what I know about my system :
OS: Linux xxxxxxxxx 2.6.9-023stab046.2-enterprise #1 SMP Mon Dec 10 15:22:33 MSK 2007 i686
PHP: 5.1.2c
MySQL: 5.0.18
XOOPS: XOOPS 2.3.1 (I have upgraded from 2.3.0)

I can see no errors in XOOPS, PHP or MySQL debug mode(s)

The editors in the /root/class/xoopseditor are :
dhtmltextarea
fckeditor
koivi
textarea
tinymce

The editor choices in the News Preferences pull-down-menu are
DHTML
Compact
Spaw Editor
HtmlArea Editor
Koivi Editor
FCK Editor
TinyEditor

I have tried the quick fix you offered, however bad luck

Does this ring bells ?

Thanks for your help ...



4
maotouying
HTML Editor
  • 2008/10/22 14:44

  • maotouying

  • Just popping in

  • Posts: 4

  • Since: 2006/4/7 1


I have a new installed XOOPS 2.30 with
- Community Pack 2.0
- News 1.56
- CBB 3.08
- XOOPS_FRAMEWORKS_XOOPSEDITOR_VERSION", "1.10"
I am very happy with the configuration and XOOPs.

However, for some reasons I cannot get other Editors to work but DHTML. The 'Select' pull-down menu like the one you have on this page does not appear.
I have tried to followhttp://mark.boyden.name/smartsection.item.16/editors-wysiwyg.html ,- but I am confused by the number of versions involved.
I am afraid, I have missed something very fundamental, because noone else seem to have this problem




TopTop



Login

Who's Online

168 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits