71
samuels
Re: could you help me with koivi editor ?
  • 2004/11/24 21:22

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


1.For adding new fonts you must use the editor methods, for example:

$wysiwyg_text_area= new XoopsFormWysiwygTextArea(_MD_CONTENTC'content2'$value'100%''400px','');
$wysiwyg_text_area->setFonts(array('Courier New'=>'Courier New, Courier, monospace','MS Serif'=>'MS Serif, New York, serif','Verdana'=>'Verdana, Geneva, Arial, Helvetica, sans-serif','Tahoma'=>'Tahoma'));
$sform->addElement$wysiwyg_text_area );


2.Right to left I think is only supported under iexplore, i¡ll try to add this on next bugfix version.

3.I have no idea how to select a default editor on newbb.



72
samuels
Re: could you help me with koivi editor ?
  • 2004/11/24 13:32

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


News 1.1 version has two storyform.inc.php

You forgot 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();


I hope it will help you.



73
samuels
Re: could you help me with koivi editor ?
  • 2004/11/24 13:07

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


What version of news are you using?



74
samuels
Re: koivi editor no line breaks
  • 2004/11/22 23:21

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


It's a problem with textsaniticer.
While we made changes on this class you can solve the problem with news, editing the following file:

Open modules\news\submit.php

Go to line 104:
$title $story->title("Edit");
        
$hometext $story->hometext("Edit");
        
$bodytext $story->bodytext("Edit");


And change by:
$title $story->title("Show");
        
$hometext $story->hometext("Show");
        
$bodytext $story->bodytext("Show");


With this you edit the real HTML.



75
samuels
Re: Koivi and NewBB 2.0
  • 2004/11/17 7:55

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


Have you selected koivi in newbb admin preferences?



76
samuels
Re:help with koivi
  • 2004/11/15 21:24

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I don't care about using single or double quotes, perhaps is something related on php config "magic_quotes".



77
samuels
Re: Koivi and NewBB 2.0
  • 2004/11/15 21:13

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


On newbb 2 rc3 you must edit newbb/include/functions.php

On line 942:
case "koivi":
     
/* add the API
     */


Add the following:
include_once XOOPS_ROOT_PATH "/class/wysiwyg/formwysiwygtextarea.php";
$wysiwyg_text_area= new XoopsFormWysiwygTextArea($caption$name$value'100%''400px','');

//this line only if you prefeer xp skin
$wysiwyg_text_area->setSkin("xp");

$form $wysiwyg_text_area;



78
samuels
Re:help with koivi
  • 2004/11/13 11:15

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


I've downloaded it but I dont have any problem with it.

This is the admin/index.php file I've modified.

http://www.forjandoleyendas.com/public/fl/uploads/xt_conteudo_koivi_index.zip



79
samuels
Re:Koivi and encoding?
  • 2004/11/11 23:45

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


This is the last version.
Try it, perhaps the problem with encoding is solved.
http://www.forjandoleyendas.com/kclass.zip



80
samuels
Re:help with koivi
  • 2004/11/8 23:51

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


For imagemanager you must change the imagemanager template with the one I've included on the package.

The second problem is because I had an error overriding a method.It will be fixed on new version.

For correct it open "formwysiwygtextarea.php":

Comment line 57:
//var $caption;


And comment method on line 173:
/*function getCaption()
{
    return $this->caption;
}*/


Thk's for bug reporting, I'm very bad testing.




TopTop
« 1 ... 5 6 7 (8) 9 10 11 ... 22 »



Login

Who's Online

119 user(s) are online (69 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