1
wisy2
WYSIWYG-Editors
  • 2007/7/30 12:46

  • wisy2

  • Just popping in

  • Posts: 3

  • Since: 2007/7/30


Hi,
I installed XOOPS in the version 2.0.16.
Then I installed the module “news”, version 1.54.
So far so well.
Now I have the following problem:
If I select another WYSIWYG editor than the standard editors (DHTML,…) and want to provide a new article, no editor is present. There nothing is. I cannot provide a text. Frameworks and xoopseditor are installed. What's the error ? It are not the rights, because the standard editors are indicated.

WiSy

2
McDonald
Re: WYSIWYG-Editors
  • 2007/7/30 16:04

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Xoops comes with the DMHTML and text editor only.

If you want to use a WYSIWYG editor you have to add one or more yourself.

Some WYSIWYG editors:

- TinyEditor
- Xoops WYSIWYG editors (koivi, FCKeditor, TinyMCE, etc.)

3
wisy2
Re: WYSIWYG-Editors
  • 2007/7/31 6:39

  • wisy2

  • Just popping in

  • Posts: 3

  • Since: 2007/7/30


I installed the XOOPS WYSIWYG editors.
But it doesn't work. If I choose the standard editors it's ok, they are showed, but not the other editors. So where could be the problem ?

PS: Sorry, but my englisch isn't so good ^^.

4
McDonald
Re: WYSIWYG-Editors
  • 2007/7/31 8:34

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Did you install the Xoops FrameWorks?

Another problem might be that the News module can't find the editors due to a wrong path in the file news/include/functions.php.
Open this file in a text editor and look for the following part of code:

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';


    switch(
strtolower(news_getmoduleoption('form_options'))) {
        case 
'spaw':
            if(!
$x22) {
                if (
is_readable(XOOPS_ROOT_PATH '/class/spaw/formspaw.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/spaw/formspaw.php');
                    
$editor = new XoopsFormSpaw($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'spaw'$editor_configs);
            }
            break;

        case 
'fck':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/fckeditor/formfckeditor.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/fckeditor/formfckeditor.php');
                    
$editor = new XoopsFormFckeditor($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'fckeditor'$editor_configs);
            }
            break;

        case 
'htmlarea':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/htmlarea/formhtmlarea.php'))    {
                    include_once(
XOOPS_ROOT_PATH '/class/htmlarea/formhtmlarea.php');
                    
$editor = new XoopsFormHtmlarea($caption$name$value);
                }
            } else {
                
$editor = new XoopsFormEditor($caption'htmlarea'$editor_configs);
            }
            break;

        case 
'dhtml':
            if(!
$x22) {
                
$editor = new XoopsFormDhtmlTextArea($caption$name$value1050$supplemental);
            } else {
                
$editor = new XoopsFormEditor($caption'dhtmltextarea'$editor_configs);
            }
            break;

        case 
'textarea':
            
$editor = new XoopsFormTextArea($caption$name$value);
            break;

        case 
'tinyeditor':
            if ( 
is_readable(XOOPS_ROOT_PATH.'/class/xoopseditor/tinyeditor/formtinyeditortextarea.php')) {
                include_once 
XOOPS_ROOT_PATH.'/class/xoopseditor/tinyeditor/formtinyeditortextarea.php';
                
$editor = new XoopsFormTinyeditorTextArea(array('caption'=> $caption'name'=>$name'value'=>$value'width'=>'100%''height'=>'400px'));
            }
            break;

        case 
'koivi':
            if(!
$x22) {
                if ( 
is_readable(XOOPS_ROOT_PATH '/class/wysiwyg/formwysiwygtextarea.php')) {
                    include_once(
XOOPS_ROOT_PATH '/class/wysiwyg/formwysiwygtextarea.php');
                    
$editor = new XoopsFormWysiwygTextArea($caption$name$value'100%''450px''');
                }
            } else {
                
$editor = new XoopsFormEditor($caption'koivi'$editor_configs);
            }
            break;
        }
        return 
$editor;
}


Change to paths as they should be compared to your installation.
Probably /class/ should be /class/xoopseditor/.

5
wisy2
Re: WYSIWYG-Editors
  • 2007/7/31 13:14

  • wisy2

  • Just popping in

  • Posts: 3

  • Since: 2007/7/30


Ok, I did it. But now there are some strange effects like, I choose an editor and provide an article and publish it, after I edit the article and save, the article are disappeared. Then I write an other article and make the same, the article are disappeared but the article, that I write before, is appeared again. So it doesn't work right. I don't have much hope, that I can manage it.

PS: Sorry for my bad english ^^

6
snow77
Re: WYSIWYG-Editors
  • 2007/7/31 18:52

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


Quote:
Another problem might be that the News module can't find the editors due to a wrong path in the file news/include/functions.php.
Open this file in a text editor and look for the following part of code.. Change to paths as they should be compared to your installation. Probably /class/ should be /class/xoopseditor/.


I did that too and got the same problems as wysi2. I wanted to add the "extended DHTML editor", but I made tests with koivi too and it didn't work with just changing the paths.

For news I separately install the koivi found at dev.xoops.org here

that one works fine, but I wish all modules used the frameworks resources so we don't have to install so many duplicate wysiwygs everywhere.

Also I'd like the extended dhtml editor to be replaced by the old dhtml editor in the default part of the system.

7
McDonald
Re: WYSIWYG-Editors
  • 2007/7/31 21:56

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I've noted before on a test server that the xoopseditors package doesn't work with any module at all except those modules written by phppp.

Login

Who's Online

197 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 197


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