Hello, and nice day for all.
I have FCKeditor in 2 text area of a maintenance.php file with a record form to change the content of a site. Those instances of the editor where working fine. Now I have decided to have a simple javascript image gallery, a few lines of code with an onload in the body tag. It works very nice at site level.
I copy paste the gallery code to the text area via HTML code, not using the editor WYGIWYS mode. When I go to WYGIWYS mode the gallery in the record form looks ugly because the file with the editor do not have the javascript, but in the generated site looks fine.
1.- So I decided to place a call to the imggallery.js and gallerystyle.css files in the header of the maintenance.php file where the record form with the KCKeditor is and with the onload="gallery()" in the body tag.
Unfortunately the FCKeditor do not load. If I take out the onload="gallery()" from the body tag, it works again.
I need the FCKeditor working and the javascript gallery working inside the editor area at the same time. Any Idea of how can this be resolved please?
2.- I am also beginning to use jQuery plugins, what precautions do I have to take in order not to have problems with FCKeditor instances, jQuery and custom javascript functions in my maintenance file?
Please bear in mind that I am not a javascript guy I only use ready made functions and libraries inside my maintenance.php file to easy my work.
Thanks a lot for your help
Best Regards
joejac
I have FCKeditor in 2 text area of a maintenance.php file with a record form to change the content of a site. Those instances of the editor where working fine. Now I have decided to have a simple javascript image gallery, a few lines of code with an onload in the body tag. It works very nice at site level.
I copy paste the gallery code to the text area via HTML code, not using the editor WYGIWYS mode. When I go to WYGIWYS mode the gallery in the record form looks ugly because the file with the editor do not have the javascript, but in the generated site looks fine.
1.- So I decided to place a call to the imggallery.js and gallerystyle.css files in the header of the maintenance.php file where the record form with the KCKeditor is and with the onload="gallery()" in the body tag.
Unfortunately the FCKeditor do not load. If I take out the onload="gallery()" from the body tag, it works again.
I need the FCKeditor working and the javascript gallery working inside the editor area at the same time. Any Idea of how can this be resolved please?
2.- I am also beginning to use jQuery plugins, what precautions do I have to take in order not to have problems with FCKeditor instances, jQuery and custom javascript functions in my maintenance file?
Please bear in mind that I am not a javascript guy I only use ready made functions and libraries inside my maintenance.php file to easy my work.
Thanks a lot for your help
Best Regards
joejac