11
assniok
Re: could you help me with koivi editor ?
  • 2004/11/28 22:39

  • assniok

  • Just popping in

  • Posts: 15

  • Since: 2002/9/13


hello,

it's ok for me, it's work fine

i have just a little question because, in newbb2 preferences, if i choose only koivi (and not another like DHTML) it don't work

finally, i would like to use only koivi and not DHTML, it's possible ??

thanks for advance for your help

@+

12
assniok
Re: could you help me with koivi editor ?
  • 2004/11/29 14:14

  • assniok

  • Just popping in

  • Posts: 15

  • Since: 2002/9/13


UP UP

@+

13
ClubNUKE
Re: could you help me with koivi editor ?
  • 2004/12/3 16:21

  • ClubNUKE

  • Just popping in

  • Posts: 83

  • Since: 2004/9/1 2


I use News 1.2...

Can you help me?

Thanks!


14
samuels
Re: could you help me with koivi editor ?
  • 2004/12/7 1:10

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@assniok
I'll ask to phppp, I think he did the newbb wysiwyg selector.

@ClubNUKE
There is an example of news 1.2 implementation on koivi docs.

15
ClubNUKE
Re: could you help me with koivi editor ?
  • 2004/12/7 2:54

  • ClubNUKE

  • Just popping in

  • Posts: 83

  • Since: 2004/9/1 2


Thanks Samuel!

16
noisia
Re: could you help me with koivi editor ?
  • 2004/12/8 1:12

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


I tried samuels advice and edited the
modules/news/admin/storyform.inc.php

When I open the editor, I now get both the XOOPS editor window as well as the wysiwyg editor.

Any elegant way to get rid of the first window?

Great module by the way

17
samuels
Re: could you help me with koivi editor ?
  • 2004/12/8 16:34

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Have you commented the xoopsdhtmlarea line on code?

18
russtik
Re: could you help me with koivi editor ?
  • 2004/12/8 17:05

  • russtik

  • Just popping in

  • Posts: 70

  • Since: 2004/8/13


Hi,

I'd really like to start using the Koivi Editor but have no idea how to implement it. I'm finding the documentation hard going and don't know where to start.

I understand that it is not a module and that I will have to edit some files, but that's as far as my knowledge goes. Could someone give me some pointers towards including the wysiwyg in a few modules i.e. what files to modify and how?

TIA.

19
noisia
Re: could you help me with koivi editor ?
  • 2004/12/8 22:37

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


Hi Samuels,

Thanks for the immediate response...

Quote:
by samuels on 2004/12/9 1:34:43

Have you commented the xoopsdhtmlarea line on code?


I indeed overlooked that... (That's the problem with beginners like me)

20
noisia
Re: could you help me with koivi editor ?
  • 2004/12/9 0:17

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


Hi Russtik,

The koivi editor is not a module yet, but a hack. A very great hack, since it runs on open source web browsers

(Another wysiwyg editor is spaw, which only runs on IE. Spaw is a proper module and is integrated in many modules by default)

Most likely koivi will become a proper module in the future and may be integrated with other modules.

For now, it requires a bit of script modifications:
The manual is as follows:
Quote:
1.Copy wysiwyg folder into your XOOPS "class" folder

2.Replace your system_imagemanager.html template with the new one.

3.Follow instructions in docs folder for implement wysiwyg class in modules.


I am a beginner, and it took me a while to get the courage to try it out, but I managed...

1. Copy the "koivieditor class v1.0 FINAL/wysiwyg" folder into your XOOPS "class" folder (which is in the root folder of your XOOPS site)

2. Replace the "xoopsrootfolder/modules/system/templates/system_imagemanager.html" file with the one that is provided with koivi

3. Then I followed the instructions that were given here in this forum thread:

Edit:
modules/news/admin/storyform.inc.php

You must change this code:

echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
xoopsCodeTarea("hometext"6015);
xoopsSmilies("hometext");

echo 
"<br /></p><p><b>"._AM_EXTEXT."</b><br /><br />n";
xoopsCodeTarea("bodytext"60152);
xoopsSmilies("bodytext");



With this:
echo "</p><p><b>"._AM_INTROTEXT."</b><br /><br />n";
//xoopsCodeTarea("hometext", 60, 15);
//xoopsSmilies("hometext");
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";

$wysiwygHomeText= new XoopsFormWysiwygTextArea(''"hometext"$hometext'100%''400px','');
echo 
$wysiwygHomeText->render();


echo 
"<br /></p><p><b>"._AM_EXTEXT."</b><br /><br />n";
//xoopsCodeTarea("bodytext", 60, 15, 2);
//xoopsSmilies("bodytext");
$wysiwygBodyText= new XoopsFormWysiwygTextArea(''"bodytext"$bodytext'100%''400px','');
echo 
$wysiwygBodyText->render();


After the editing the file, you need to go to the modules in the admin and click on "update" of the news module

This worked for me to get the news and the stories module to edit in wysiwyg

Other modules I did not look into yet, but it must be similarly easy

Login

Who's Online

219 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 219


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