I have been looking all over the net for a solution and I can't find one. I have found a bunch of ways to save out the HTML once it is already in the FCK editor. Any suggestions as to getting an html file uploaded into the FCK editor?
Is this a joke. I guess, every month someone asks: How to save files to x, how to upload. It takes little brain to get a 10 line solution. Is this that hard?
1. read from POST multipart form data 2. save to a request variable to content of the upload 3. create an instance, assign the value of the variable to the FCKeditor value.
Wow. Your arrogance is hilarious. You are assuming that people know what you know. There are users and developers out there that are at the same stage you once were early in your career of being a know-it-all internet troll. Some might have more of a design background and lack some of the basic programming skills. This is a perfect example of why it can be frustrating to try and get those skills needed.
If you have the knowledge, share. Write a response as if you are teaching a ten year old. Assume they know very little. When this topic comes up again, copy and paste.
It's not that I don't share, I've done this already zillion times. search the forums. It's simply that people ask question and imply: "answer please, I am lazy" and simply don't write what they have done so far to achieve their goal. A (undirectional) every-for-free-mentality won't work out and no one benefits from.
The file content will be in the post body. Please install Firebug and Fiddler, they will ease your work tremendously. Figure out how to read form data with PHP. This is enough for the beginning. Accomplish that and we will continue then. I just don't want to overload you. You wouldn't benefit from.
Re: Import HTML file and then save out file....
Thanks again.
Re: Import HTML file and then save out file....
Re: Import HTML file and then save out file....
Thank you.
Re: Import HTML file and then save out file....
1. read from POST multipart form data
2. save to a request variable to content of the upload
3. create an instance, assign the value of the variable to the FCKeditor value.
You're done.
Re: Import HTML file and then save out file....
If you have the knowledge, share. Write a response as if you are teaching a ten year old. Assume they know very little. When this topic comes up again, copy and paste.
Re: Import HTML file and then save out file....
Re: Import HTML file and then save out file....
http://www.raditha.com/megaupload/
Re: Import HTML file and then save out file....
I would be easier to follow my steps.
The first you should do is to make the upload work with a simple form:
The file content will be in the post body. Please install Firebug and Fiddler, they will ease your work tremendously. Figure out how to read form data with PHP. This is enough for the beginning. Accomplish that and we will continue then. I just don't want to overload you. You wouldn't benefit from.
Re: Import HTML file and then save out file....
Re: Import HTML file and then save out file....
http://odt2xhtml.eu.org/index_en.htmlTEMPimportado.html
$sBasePath = $_SERVER['PHP_SELF'] ; $sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "fckeditor" ) ) ; $oFCKeditor = new FCKeditor("frmTexto") ; $oFCKeditor->BasePath = '/API/fckeditor/' ; $oFCKeditor->Height = '450'; $oFCKeditor->Value = file_get_contents("TEMP/odt2xhtml/importado.html"); $oFCKeditor->Create() ;$oFCKeditor->Value = file_get_contents("TEMP/odt2xhtml/importado.html");