Hello all,
I have a problem.
I build a CMS with offcourse the CKEditor.
I got a AddPage.php, there i call the form.tpl with the full form.
When i submit the values will be send by AJAX to progress.php.
There will the values be checked. If there are some problems, he will generate a list and post this together with the values that where send.
The values will be filled in the form that i call (form.tpl again).
But now i can't see the editor anymore.
The error (i don't know how it is in english so only dutch: )
Foutdetails webpagina
Gebruikersagent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Tijdstempel: Sat, 23 Jan 2010 16:44:29 UTC
Bericht: Uitzondering geactiveerd maar niet afgehandeld
Regel: 23
Teken: 1618
Code: 0
URI: <FULL PATH>/ckeditor/ckeditor.js
Bericht: Uitzondering geactiveerd maar niet afgehandeld
Regel: 23
Teken: 1618
Code: 0
URI: <FULL PATH>/ckeditor/ckeditor.js
If i translate this to english it should be something like "Exeception activated but not finished"
[EDIT] Uhm ok im a little bit further but it drives me crazy!
Before i had:
<textarea name="editor1"><?php echo $content; ?></textarea> <script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script>
I replaced it to:
<div id="editor1"></div> <div id="content_info">Content: <?php echo $content ?></div> <script type="text/javascript"> var editor; var html = document.getElementById('content_info').innerHTML; editor = CKEDITOR.appendTo('editor1'); editor.setData(html); </script>
The first time i load the page the editor is visible without any problems. When i push the edit button of some page, the page will be loaded and the content is in the div(normally display:none;)
But the editor wont load itself..what do I wrong!?
Re: Error on line 23...
Re: Error on line 23...
Re: Error on line 23...
Hi alfonsoml,
thx for your reply. I think i can't give much more code because this is all what i need for the editor, isn't?
however, i destroy the editor. The same way like the sample.
I will try to explane my problem again:)
I got a page with a table of pages, loaded by AJAX.
When i call add/edit page a thickbox will be loaded.
In AJAX will call AddPage.php, here al the variables will be set and some classes will be initialized:
The PageForm is the form with all boxes:
if i want to save the filled form a JavaScript function will be called:
The function will get al the values of the inputfields en will send them via AJAX to a php file where it will be checked and saved.
If there is a problem, the variables will be set and the PageForm will be called again.
This is the Function SaveFrom:
For editing a page, will be called the same form and will EditPage.php set before including the form first the variables.

I hope you got now enough information
Re: Error on line 23...
Re: Error on line 23...
Re: Error on line 23...