11
Aidus
Re:Problem with Koivi editor
  • 2004/10/23 9:11

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


I did so but not working.
I think there something is missing.

12
Aidus
Re:Problem with Koivi editor
  • 2004/10/23 9:16

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


My storyform.inc.php
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
$sform = new XoopsThemeForm(_NW_SUBMITNEWS"storyform",


$sform->addElement(new XoopsFormWysiwygTextArea_NW_THESCOOP'hometext'$hometext'100%''400px',''), true); 

//Extra info
//If admin -> if submit privilege
if ($approveprivilege) {
$sform->addElement(new XoopsFormWysiwygTextArea_AM_EXTEXT'bodytext'$bodytext'100%''400px',''), true);


Maybe there is error.

13
Aidus
Re:Problem with Koivi editor
  • 2004/10/23 9:29

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


And what is this?
XoopsKoiviEditor in yor XoopsForm

1ºCopy the wysiwyg folder inside 
class folder

2º 
Include the class in your php file
include XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";

3ºCreate the editor object
$wysiwyg_text_area
= new XoopsFormWysiwygTextArea_MD_CONTENTC'content'$content '100%''400px',$options);

4ºAdd the editor to your form
$sform
->addElement$wysiwyg_text_area );


Do I need put that code somewhere? Or this is for other modules? Or . . .?

14
smdcom
Re:Problem with Koivi editor

storyform.inc.php should be like this:

Quote:

<?php
.
.
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
.
.
.
//$sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP, 'hometext', $hometext, 15, 60, 'hometext_hidden'), true);
$sform->addElement(new XoopsFormWysiwygTextArea( _NW_THESCOOP, 'hometext', $hometext, '100%', '400px',''), true);
.
.
// $sform->addElement(new XoopsFormDhtmlTextArea(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden'), false);
$sform->addElement(new XoopsFormWysiwygTextArea( _AM_EXTEXT, 'bodytext', $bodytext, '100%', '400px',''), true);


Red Tag = you've to add into your file.
Blue Tag = either you can remove it or just give commment "//"... which i've done with mine.. it's working..

hope that make sense..

15
Aidus
Re:Problem with Koivi editor
  • 2004/10/23 13:42

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Not working.
Firefox JavaScript console shows:
1.
ErrorXK_init is not defined

2.
ErrorXK_insertDate is not defined

...and more.
Which koivi I should use?
storyform.inc.php is the only file I need to edit?
I should install module wy.._sections too?

I don't knov where to start :(

16
samuels
Re:Problem with Koivi editor
  • 2004/10/24 7:49

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Perhaps there is some problem with js compression.
In package there is a folder named "source".

Copy all files inside to:
class/wysiwyg/include/js/

Make sure you overwrite all files.
After that tell me what js errors you have.

Use koivieditor class v1.0 rc3.zip.
You don't need to install the example module.

17
Aidus
Re:Problem with Koivi editor
  • 2004/10/24 12:11

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


I put that wysiwyg folder from koivieditor class v1.0 rc3.zip in /class.
Nothing! Even toolbars not showing up.

18
Aidus
Re:Problem with Koivi editor
  • 2004/10/24 12:20

  • Aidus

  • Just popping in

  • Posts: 50

  • Since: 2004/5/21


Well problem is in JavaScript
What did I do:
1. Download xk class v1rc2.zip put wysiwyg to class
2. Edited news\include\storyform.inc.php
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";
include_once 
XOOPS_ROOT_PATH."/class/wysiwyg/formwysiwygtextarea.php";
$sform = new XoopsThemeForm(_NW_SUBMITNEWS"storyform"XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/submit.php');
$sform->setExtra('enctype="multipart/form-data"');
$sform->addElement(new XoopsFormText(_NW_TITLE'title'5080$title), true);


//$sform->addElement(new XoopsFormDhtmlTextArea(_NW_THESCOOP, 'hometext', $hometext, 15, 60, 'hometext_hidden'), true);
$sform->addElement(new XoopsFormWysiwygTextArea_NW_THESCOOP'hometext'$hometext'100%''400px',''), true);
//Extra info
//If admin -> if submit privilege
if ($approveprivilege) {
//$sform->addElement(new XoopsFormDhtmlTextArea(_AM_EXTEXT, 'bodytext', $bodytext, 15, 60, 'bodytext_hidden'), false);
$sform->addElement(new XoopsFormWysiwygTextArea_AM_EXTEXT'bodytext'$bodytext'100%''400px',''), true);


3. Download koivieditor class v1.0 rc3.zip and overwrite
\class\wysiwyg\include\js files with source files from v1.0 rc3

Now everything works fine :) and I am happy :)

19
samuels
Re:Problem with Koivi editor
  • 2004/10/24 13:19

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Ok, good news. But is better to use only 1rc3 and dont mix versions.
xk class v1rc2.zip and koivieditor class v1.0 rc3.zip are the same but 1rc3 is newer.

Name is different because I forgot rename it.
Sorry for confusion.

Login

Who's Online

119 user(s) are online (41 user(s) are browsing Support Forums)


Members: 0


Guests: 119


more...

Donat-O-Meter

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

Latest GitHub Commits