1
ralf57
A little question about News Wysiwyg hack by chapi
  • 2004/2/19 21:33

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1



Hi all,
i've successfully installed chapi's hack
and it works fine.
Now i'd like to have different width and height
for intro text and extended text.
I've looked into /news/admin/storyform.inc.php
but i was unable to get my goal.
Can anybody tell me the right files to edit?
Thanks in advance,ralf.

2
chapi
Re: A little question about News Wysiwyg hack by chapi
  • 2004/2/20 15:22

  • chapi

  • Theme Designer

  • Posts: 611

  • Since: 2002/1/22


/news/admin/storyform.inc.php is the correct file. Search for the following line (multiple times, because for hometext and bodytext)

$sw = new SPAW_Wysiwyg('hometext',$hometext);


and add this vars, while the last should be the height.

$sw = new SPAW_Wysiwyg('hometext',$hometext,'','','','300px','450px');


Hope this works.

3
ralf57
Re: A little question about News Wysiwyg hack by chapi
  • 2004/2/20 21:00

  • ralf57

  • Quite a regular

  • Posts: 231

  • Since: 2003/2/3 1


Thank you chapi,
you took me on the right way...
Not only your suggest worked but reading Spaw docs i discovered that there are many ways to "contruct" the editor.
In fact after a few trials now i have this:

$sw = new SPAW_Wysiwyg('hometext',$hometext,'it','mini','classic','310px','310px');

and

$sw = new SPAW_Wysiwyg('bodytext',$bodytext,'it','full','classic','650px','400px');

Exactly what i wanted to have
Thanks again,ralf.

Login

Who's Online

431 user(s) are online (317 user(s) are browsing Support Forums)


Members: 0


Guests: 431


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