There is a bug when saving data to the data6.php file. I'm not sure if this is tinymce related.
For some reason when i add a text string to the file from within the editor and click the save icon it saves the content ok but when the page refreshes it cuts off some of the content from within the editor. If this makes any sense. If I refresh the page it comes back.
Thanks to the both of you for all your effort and time.
I certainly wish a pleasant holiday season to you and your family.
There is a bug when saving data to the data6.php file. I'm not sure if this is tinymce related.
For some reason when i add a text string to the file from within the editor and click the save icon it saves the content ok but when the page refreshes it cuts off some of the content from within the editor. If this makes any sense. If I refresh the page it comes back.
Thanks to the both of you for all your effort and time.
I certainly wish a pleasant holiday season to you and your family.
I think it has something to do with the amount of time it takes to save the file.
So, I added another array element to the $dataFiles array at the end, called "end_of_array".
This "end_of_array" element must be at the end of the array.
It causes the program to perform additional condition statements, giving the file enough time to be saved.
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>editor</title> <!-- TinyMCE --> <script language="javascript" type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "textareas", theme : "advanced", plugins : "ibrowser,safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount",
I added an image upload ability to the editor but I'm getting some sort of problem.
When saving the file the image links end up looking like this in the output file.
At first I thought it had something to do with the tinyfck image manager i am using to upload images but i also tried another image manager called ibrowser and I get the same kinds of links.
Do you think you might be able to help me on this please.
Special thanks to all of you who took the time to help me out. I have been juggling so much I haven't had time to study like I'd like to. Just to let you guys know, soon I will be taking a full fledged PHP course and learn the way I should so I can do things on my own