Hi
I have got the editor working fine, but I want to be able to edit files OUTSIDE of the Cute_editor folder. I am using the editHtml.aspx as a test and have tried loads of different ways, none that work. Here is the original code.
<%@ Page Language="VB" ValidateRequest="False" %>
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<html>
<head>
<title>ASP and ASP.NET WYSIWYG Editor - Edit Static Html Example </title>
<link rel="stylesheet" href="../example.css" type="text/css" />
</head>
<body >
<form runat="server">
<h1>Edit Static Html</h1><hr/>
This example demonstrates you can use Cute Editor to edit static html page.<br/>
<span>
Below is an example page that displays a document held in an HTML file on the hard drive. When you submit the form, the document is saved back to the drive. <br/><a href="document.htm"><b>Check the document.htm</b></a>
</span>
<br><br>
<CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" EditCompleteDocument="true" AllowPasteHtml="false" ThemeType="Office2003_BlueTheme" runat="server" ></CE:Editor><BR>
<asp:Button id="btnUpdate" onclick="Submit" Runat="server" Text="Submit"></asp:Button><br />
<asp:textbox id="textbox1" runat="server" TextMode="MultiLine" Height="250px" Width="730px" Font-Name="Arial"></asp:TextBox>
</form>
</body>
</html>
<script runat="server">
Public Sub Page_Load(sender As object, e As System.EventArgs)
If Page.IsPostBack Then
Editor1.SaveFile("document.htm")
textbox1.Text = Editor1.Text
Else
Editor1.LoadHtml("document.htm")
End If
End Sub
public Sub Submit(sender As object, e As System.EventArgs)
Editor1.SaveFile("document.htm")
textbox1.Text = Editor1.Text
End Sub
</script>
Now my application runs in a folder httpdocs\wwwroot\hmtl-editor\ which runs fine but how do I edit a file called document.htm in the folder httpdocs\new using the code above?
If I add the FilesPath parameter I get the following error.
Server Error in '/html-editor' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
|
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
|
If I put all the html and image folders within cute_editor it works but I don't want to do that.
PLEASE HELP IT IS DRIVING ME MAD
SORRY IF THIS IS EASY QUESTION BUT I AM A NEWBIE TO .NET editor