43
steinj14,
Im in the same boat as you, and I think there are a lot of others squeezed into this "how to change the default editor" boat. I too have searched long and hard through the forums for a good solution but it appears to be vague.
I do acknowledge that not all modules are compliant with the wysiwyg editors so changing the default editor might cause problems with some modules? What I dont understand is why this editor was chosen as "default" in the first place - Ive used a plethora of wysiwyg textarea editors with no trouble but this default editor aint one bit user friendly. If spaw, fckeditor or tinymce were chosen as the default one then I think there would be a lot less frustration for many XOOPS users.
Some modules allow you to change the editor in the module preferences but other modules like Extended Profiles do not. I have been tinkering with the code for that module but as yet havent been able to switch the editor.
I feel the code may be similar to the one described in this XOOPS hack
https://xoops.org/modules/news/article.php?storyid=2597
Quote:
==== HACK ====================================
In /modules/system/blocks/system_blocks.php
around line 56, you will find the following line:
$form->addElement(new XoopsFormDhtmlTextArea(_MB_SYSTEM_CONTENT, 'options[0]', htmlspecialchars($ts->stripSlashesGPC($options[0]), ENT_QUOTES), 15, 60));
Change it to:
$theEditor = new XoopsFormWysiwygTextArea(array());
$theEditor->setName('options[0]');
$form->addElement($theEditor);
================================================
If would be wonderful if one of you XOOPS experts could help us and many others with a detailed way of going about changing the default editor in a module or systemwide.
thanks!