window.onload = function()
{
var oFCKeditor = new FCKeditor( 'Job_Description') ;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.Height = 300 ;
oFCKeditor.Width = 525 ;
oFCKeditor.BasePath = "/FCKeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
<form name="form1">
<table>
<tr>
<td colspan=2>
<p>Job Description: <b class="chesh">*</b>
input type="text" name="c2" size="1" DISABLED>characters allowed.<br>
<textarea name="Description" rows=12 cols=100></textarea> </p> </td>
</tr>
</table>
</form>
I am having the above code in one of my pages. Basically i am replacing the textarea with a FCKEditor. Is there any way i can access the text inside the FCKEditor aftr i type/copy/paste.
Thanks in advance for the responses
{
var oFCKeditor = new FCKeditor( 'Job_Description') ;
oFCKeditor.ToolbarSet = "Default";
oFCKeditor.Height = 300 ;
oFCKeditor.Width = 525 ;
oFCKeditor.BasePath = "/FCKeditor/" ;
oFCKeditor.ReplaceTextarea() ;
}
<form name="form1">
<table>
<tr>
<td colspan=2>
<p>Job Description: <b class="chesh">*</b>
input type="text" name="c2" size="1" DISABLED>characters allowed.<br>
<textarea name="Description" rows=12 cols=100></textarea> </p> </td>
</tr>
</table>
</form>
I am having the above code in one of my pages. Basically i am replacing the textarea with a FCKEditor. Is there any way i can access the text inside the FCKEditor aftr i type/copy/paste.
Thanks in advance for the responses
RE: Accessing the contents of HTML editor.
basically, there are api functions that you might attach to events like keystrokes or copy/paste.
Once you've done that, you can get the html text simply by using another api function GetXHTML.
You should take at the charscounter plugin, it calls a js function everytime a keystroke is captured, which is typically what you want.
Hope this helps.
Y.Chaouche