1
shelley
to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/2 3:37

  • shelley

  • Just popping in

  • Posts: 31

  • Since: 2003/10/8


I would like to use this module but I don't know how.

in the readme file is written there:

Quote:
How to use with other Modules:
Add these two lines to as near to the top of the page as possible, just below admin_header include:

$spaw_root = XOOPS_ROOT_PATH . '/modules/spaw/';
include_once $spaw_root . 'spaw_control.class.php';

But in that file it is necessary to add these lines?

the same with this example:
Quote:
For the news module, use the following:

echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />\n";
//xoopsCodeTarea("hometext", 60, 15);
$sw = new SPAW_Wysiwyg( 'hometext', $hometext, 'en', 'full', 'default', '99%', '600px' );
$sw -> show();
xoopsSmilies("hometext");

where do I copy this code?


Help me
thanks

2
shelley
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/2 16:31

  • shelley

  • Just popping in

  • Posts: 31

  • Since: 2003/10/8


UP

3
svaha
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/2 20:02

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


I want to test spaw in wf-section, but I am also missing some info on where to put this snippets and what line.
I've the module installed but can't use it.
Please give some more info on the installation of this editor.

Aloha

4
morris
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/2 20:52

  • morris

  • Just popping in

  • Posts: 54

  • Since: 2003/9/25


In the news module I had to change the storyform.inc.php file (in the mudules/news/admin dir). But which I have to use for the forum (newbb) I really don't know.

For news stories I prefer the News Wysiwyg Patch made by Chapi. Download here.
This patch can handle the tables much better than the Spaw module. (or am I wrong?)

Morris.

5
svaha
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/3 0:08

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Ok up again.
Quote:
Add these two lines to as near to the top of the page as possible, just below admin_header include:

$spaw_root = XOOPS_ROOT_PATH . '/modules/spaw/';
include_once $spaw_root . 'spaw_control.class.php';


Question : Where? What file?

Quote:
With XoopsForm class
Quote:
Without XoopsForm Class
?? What should be with or without and how can I see that that what is with or without?

Somebody of the module dev's ? maybe
Aloha

6
svaha
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/3 0:45

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Ok so I changed wfsarticle.php to :
Around line 17 :
Quote:
//hhts include spaw
$spaw_root = XOOPS_ROOT_PATH . '/modules/spaw/';
include_once $spaw_root . 'spaw_control.class.php';


And around line 1038 :
Quote:
//hhts inbouw Spaw.
//echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />\n";
//xoopsCodeTarea("maintext", 60, 15);
$sw = new SPAW_Wysiwyg( 'maintext', $maintext, 'en', 'full', 'default', '99%', '600px' );
$sw -> show();
xoopsSmilies("maintext");


Is that it? Still don't get this xoopsformclass thing ?
And what about the _AM_INTROTEXT?

Aloha

7
svaha
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/3 0:58

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Ok made my first article : Spaw editor
But can't edit it, because nothing shows up
Very nice.

Btw : I translated the language files to Dutch.


8
svaha
Re: to use Spaw WYSIWYG Editor V1.00b
  • 2004/1/3 9:33

  • svaha

  • Just can't stay away

  • Posts: 896

  • Since: 2003/8/2 2


Sorry for pushing, but I want to test this Spaw editor before I have too much content on my site.

And up you go

Login

Who's Online

227 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 227


more...

Donat-O-Meter

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

Latest GitHub Commits