I am using version 2.0 RC2 with the PHP version of the editor, and have spent a fair bit of time going through the forums, but I have been unable to find a difinitive answer.
I am using the sample2.php editor and when I click the submit button it shows be the HTML code of the page. As I can see, this happens in the sampleposteddata.php file which uses the htmlspecialchars function. So, since all this is doing is simply displaying the HMTL, I would need add the necessary PHP code to save the contents to a particular file. It is in this code that I would look for things like script injection or any other malicious code. Is that correct so far? Does anyone have some pre-written code, they would care to share?
I want users to be able to select the file to edit, so naturally I was thinking about using the filebrowser. The only documentation I found was "Server Side Integration Guidelines". However, as far as I can tell, this does not explain how to actually implement the filebrowser in page or how to load the page into the editor once you have figured out what file you want. It seems that there is a lot of "reading between the lines".
I was also thinking about making things very simply by having a link on the page that passes the filename directly to the editor (after the user has logged in). After previewing the page, clicking the next submit buttom would make a backup of the original file and then overwrite the file with the new HTML. As anyone else done something similar?
What is this all about?
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
I googled for it and found a lot of sites that use it in their example of doing various things, but I found nothing that explained what it is. I am not really happy with loading or even referencing something from Microsoft.
Any help is greatly appreaciated.
Regads,
jimmo
Sun, 04/10/2005 - 03:30
#1