I'm bad at trying to explain stuff so anyone has a clue what I'm trying to say. Bear with me....
Below is the code to my CMS's "pages" section (ok, sorry it's not, I can't submit this message with it on here? how is that helpful?). When one clicks on the Pages link, you get a list of pages and the ability to edit, reorder, etc, all on this file. I'm trying to integrate fckeditor in place of the old one and I've been only partially successful. I've tried maybe 2-3 dozen various code options and fiddled with everything but the main problem I run into just as it's starts to work is and error saying "Error: The TEXTAREA with id or name set to " " was not found" - this one happens only when the main page list is up and there is no textarea...when a page is clicked on to edit, there's no error and the page can be successfully edited. The solution seems to be right there, but it's just beyond my fingertips. Just not getting it. I have tried the php and javascript options listed under Docs.
I guess if the page is needed to review, send me at email or PM if this board allows it?
Thanks,
Amy
amywilliamsdesign.com
Below is the code to my CMS's "pages" section (ok, sorry it's not, I can't submit this message with it on here? how is that helpful?). When one clicks on the Pages link, you get a list of pages and the ability to edit, reorder, etc, all on this file. I'm trying to integrate fckeditor in place of the old one and I've been only partially successful. I've tried maybe 2-3 dozen various code options and fiddled with everything but the main problem I run into just as it's starts to work is and error saying "Error: The TEXTAREA with id or name set to " " was not found" - this one happens only when the main page list is up and there is no textarea...when a page is clicked on to edit, there's no error and the page can be successfully edited. The solution seems to be right there, but it's just beyond my fingertips. Just not getting it. I have tried the php and javascript options listed under Docs.
I guess if the page is needed to review, send me at email or PM if this board allows it?
Thanks,
Amy
amywilliamsdesign.com
Re: Error when adding fckeditor to a php page
Before
<textarea name="content" id="content" cols="50" rows="12">
<?php echo htmlentities($content); ?>
</textarea>
After
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/' ;
$oFCKeditor->Value = '<?php echo htmlentities($content); ?>' ;
$oFCKeditor->Create() ;
?>
No errors, but the content doesn't save. PHP isn't my strongest skill, please help me figure out how to make this work.
Re: Error when adding fckeditor to a php page