Hello,
First, please forgive my poor english, I'm French.
I really need help with FCKEditor. The truth is simple : I'm completely lost !
I've tried again and again but no way : I'm totally ignorant of javascript and of course, that doesn't help.
My site is programmed with PHP.
My problem is to make a form that contains 2 textareas using FCKEditor.
And I must count the characters of both textareas.
If I follow the exemple given in documentation, I get something that looks like this :
<? session_start(); include_once "../fckeditor/fckeditor.php"; echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head><title>Calendrier-annuaire de la vie associative locale</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-15"> <style type="text/css"> BODY { background: #BBEFFF; color: navy; font-family: Optimum,Helvetica,Verdana,sans-serif; font-size: medium; width: 80%; margin: auto; text-align: center;} </style> </head> <body> <form action="voirtest.php" method="post">'; $oFCKeditor = new FCKeditor('descrtemp') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Config['CounterName'] = $_SESSION['descrtemp']; $oFCKeditor->Config['MaxLength'] = 500; $oFCKeditor->Value = $_SESSION['descrtemp'] ; $oFCKeditor->Create() ; echo '<br> <input type="image" name="submit" src="images/visu.gif" align="middle" alt="Visualiser"> </form> </body></html>'; ?>
The problem is that :
- this exemple contains only 1 textarea, how do I add a second one ?
- the plugin CharsCounter doesn't work (I've added
FCKConfig.Plugins.Add( 'CharsCounter' );
in fckconfig.js).
I'm aware that my questions may seem terribly basic and obvious to most people, but I would really appreciate some help...
Re: Help for a newbie ?
2) did you put the plugin also in the plugin directory?
Re: Help for a newbie ?
OK, I suppose it was obvious for everybody else than me
Yes I did.
Maybe "Config['CounterName']" is not correct ?
Re: Help for a newbie ?
Please, can anyone explain to me, step by step, how to integrate this plugin (Charscounter) in this basic exemple :
I'm despering of doing anything correct with FCKEditor...
Re: Help for a newbie ?
try http://docs.fckeditor.net/FCKeditor_2.x ... ing_plugin
Re: Help for a newbie ?
Thank you, unfortunately, I've already read again and again this page...