So I'd go for nr .1, but only thing is that nr. 2 seems to have been updated since then and should work with FCKeditor 2.3 now too, thereby adding a new feature 'onclick text statistics'. So I guess you'll need to try both one and two to be sure to get the best.
Alfonsoml, should you read this, do you know which one is better?
When I did a cleanup of the plugins section I left those plugins open because although they are similar, they aren't strictly speaking duplicates or one has all the features of the other one, like it was the case with other plugins. I didn't have the time to test each one, so I can say if one is better than the others or it does even work with the latest version.
It would be a good idea for the authors of those plugins to get together and see the interesting points in each other code and just merge all of them together, put a nicely written readme and so have this feature ready to be used for everyone. (or if they don't care about that then it could be done by someone else)
In fact I would like to see a nice page at the wiki so that new users can read installation instructions, then the customization and finally find out available plugins and some other special changes that can be done to get the answers for most of the questions. (and of course a big section dedicated to the security, how and when enable the filebrowser, not trusting user input as it can include javascript commands and the like...)
Hi I have been breaking my neck trying to get this working, but no luck implementing it (and luckily no luck breaking my neck either). I am a basic webmaster and know nothing about javascript, and have to make a lot of assumptions reading the infor here.
Here is what I did (I am using 2.4.3):
1. put the fckplugin.js file in the fckeditor directory.
2. added the following line in the head of the page: <script type="text/javascript" src="/fckeditor/fckplugin.js"></script>
So the whole head section now reads:
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script> <script type="text/javascript" src="/fckeditor/fckplugin.js"></script> <script type="text/javascript"> window.onload = function() { var oFCKeditor = new FCKeditor( 'text_1' ) ; oFCKeditor.BasePath = "/fckeditor/" ; oFCKeditor.ToolbarSet = 'Minimum' ; oFCKeditor.ReplaceTextarea() ; } </script> (I already have this line there: <script type="text/javascript" src="/fckeditor/fckeditor.js"></script> )
3. Based on the other post I modified the rest of the page to:
I tried heaps of different changes etc, but no go.
Questions: 1. did I put the fckplugin.js file at the right spot? 2. what does testo_1 refer to? 3. should i have references to both oFCKeditor and oFCKeditor_1 ? 4. am I just to stupid to even attempt to play with this?
I have added the CharsCounter plugin to my FCKeditor installation, but the toolbar button isn't working. It displays: <label id="CharsCounterLabel">0 / 0 / 10</label>
RE: FCKeditor Max Length
1) 'CharsCounter (and MaxLength) plugin(VER 2.3 fix)' plugin based on 1, 2 and 3, but updated to work with FCKeditor 2.3:
http://sourceforge.net/tracker/index.ph ... tid=737639
2) 'Content length toolbar button' plugin http://sourceforge.net/tracker/index.ph ... tid=737639
3) 'CharsCounter (and MaxLength)' plugin, closed: http://sourceforge.net/tracker/index.ph ... tid=737639
4) 'Content Max Length for editor' plugin: http://sourceforge.net/tracker/index.ph ... tid=737639
So I'd go for nr .1, but only thing is that nr. 2 seems to have been updated since then and should work with FCKeditor 2.3 now too, thereby adding a new feature 'onclick text statistics'.
So I guess you'll need to try both one and two to be sure to get the best.
Alfonsoml, should you read this, do you know which one is better?
Paul
FCKPlugins by saulmade: http://www.saulmade.nl/FCKeditor/FCKPlugins.php
FCKSkins by saulmade: http://www.saulmade.nl/FCKeditor/FCKSkins.php
FCKSnippets by saulmade: http://www.saulmade.nl/FCKeditor/FCKSnippets.php
RE: FCKeditor Max Length
When I did a cleanup of the plugins section I left those plugins open because although they are similar, they aren't strictly speaking duplicates or one has all the features of the other one, like it was the case with other plugins. I didn't have the time to test each one, so I can say if one is better than the others or it does even work with the latest version.
It would be a good idea for the authors of those plugins to get together and see the interesting points in each other code and just merge all of them together, put a nicely written readme and so have this feature ready to be used for everyone. (or if they don't care about that then it could be done by someone else)
In fact I would like to see a nice page at the wiki so that new users can read installation instructions, then the customization and finally find out available plugins and some other special changes that can be done to get the answers for most of the questions. (and of course a big section dedicated to the security, how and when enable the filebrowser, not trusting user input as it can include javascript commands and the like...)
RE: FCKeditor Max Length
RE: FCKeditor Max Length
Hi

I have been breaking my neck trying to get this working, but no luck implementing it (and luckily no luck breaking my neck either).
I am a basic webmaster and know nothing about javascript, and have to make a lot of assumptions reading the infor here.
Here is what I did (I am using 2.4.3):
1. put the fckplugin.js file in the fckeditor directory.
2. added the following line in the head of the page:
<script type="text/javascript" src="/fckeditor/fckplugin.js"></script>
So the whole head section now reads:
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="/fckeditor/fckplugin.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'text_1' ) ;
oFCKeditor.BasePath = "/fckeditor/" ;
oFCKeditor.ToolbarSet = 'Minimum' ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
(I already have this line there: <script type="text/javascript" src="/fckeditor/fckeditor.js"></script> )
3. Based on the other post I modified the rest of the page to:
<form name="myform" action=... method=...>
<textarea name="text_1" id="text_1"></textarea>
<input type="text" name="text_1_cnt" id="text_1_cnt" value="255">
<script type="text/javascript">
var oFCKeditor_1 = new FCKeditor('testo_1');
oFCKeditor_1.BasePath = '/fckeditor/';
oFCKeditor_1.Config['MaxLength'] = 255;
oFCKeditor_1.Config['CounterName'] = 'text_1_cnt';
oFCKeditor_1.ReplaceTextarea();
</script>
</form>
I tried heaps of different changes etc, but no go.
Questions:
1. did I put the fckplugin.js file at the right spot?
2. what does testo_1 refer to?
3. should i have references to both oFCKeditor and oFCKeditor_1 ?
4. am I just to stupid to even attempt to play with this?
Thanks
John
Re: FCKeditor Max Length
toolbar button isn't working. It displays:
<label id="CharsCounterLabel">0 / 0 / 10</label>
Does anyone have a suggestion?