<head>
...
<script type="text/javascript" src="path/to/ckeditor/ckeditor.js"></script>
</head>
<body>
...
<textarea name="content" id="content"><?= $result['content'] ?></textarea>
<script type="text/javascript">
CKEDITOR.replace( 'content' ,
{
toolbar:
[
{ name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','-','Undo','Redo' ]},
{ name: 'align', items : [ 'JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ]},
{ name: 'styles', items : [ 'Format' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList' ] }
]
}
);
</script>
...
</body>
Thu, 10/20/2011 - 11:43
#1

Re: Content of editor is not sent
do you have <form method="post" ... tag in your script ?
Please try replacebyclass.html or other sample in "_samples" directory. In sample there is a form so you can use it as example.
Re: Content of editor is not sent
Yes, the form is set to send data through POST. In fact every other data in the form is actually sent. I checked it out with Firebug.
I think it's not just the editor, but some Javascript conflict, with JQuery I guess, because I'm also using the editor in the backend with even more tools, getting an excellent result. There is no jQuery code here. However I'm using jQuery in the page in which CKEditor is not working, with jQuery.noConflict() and "jQuery" instead of the variable name "$" to minimize possible conflicts.
I've had little time to keep going, and had to temoprarily restore to the plain textarea so that the users could send data through it, but I will try disabling jQuery tomorrow and tell you the results.
Regards,
Luis.
Re: Content of editor is not sent
http://www.clasificadosok.com/agregar-anuncio.html
Re: Content of editor is not sent
http://docs.cksource.com/ckeditor_api/s ... ml#getData
Re: Content of editor is not sent