RTE On-Line Html Editor 1.5.0 Support Product Page

This topic was archived

richedit.html ??? Where...? HELP

Asked 26 Feb 2003 08:25:23
1
has this question
26 Feb 2003 08:25:23 Bouvet Philippe posted:
I install RTE and publish it.
The file richedit.html is on the server but RTE does not find it !!!<img src=../images/dmxzone/forum/icon_smile_angry.gif border=0 align=middle>
I wiil really appreciate some help


Replies

Replied 26 Feb 2003 18:29:50
26 Feb 2003 18:29:50 Bill Chalmers replied:
Can you give me an url to look at?
Replied 26 Feb 2003 18:48:32
26 Feb 2003 18:48:32 Bouvet Philippe replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Can you give me an url to look at?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
actidesign.com/WJ_PHP/editor/editor.htm
I send you the text, because I have a redirect page.
I work with DMX.
Thanks for your help

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;object id="richedit" style="BACKGROUND-COLOR: buttonface" data="RTE_Files/richedit.html"width="100%" height="100%" type="text/x-scriptlet"&gt;
&lt;/object&gt;
&lt;form id="theForm" method="post"&gt;
&lt;textarea name="text" style="display:none" rows="1" cols="20"&gt;&lt;/textarea&gt;
&lt;textarea name="xhtml" style="display:none" rows="1" cols="20"&gt;&lt;/textarea&gt;
&lt;input type="text" name="Text"&gt;
&lt;/form&gt;
&lt;script language="JavaScript" event="onload" for="window"&gt;
richedit.options="history=yes;source=yes;dragdrop=yes;styleBar=yes;style=yes;font=yes;fontSize=yes;colour=yes;";
richedit.addFieldEx(theForm.Text,"Text";
richedit.docHtml = theForm.text.innerText;
&lt;/script&gt;
&lt;script language="JavaScript" event="onscriptletevent(name, eventData)" for="richedit"&gt;
if (name == "post" {
richedit.getValueEx("Text";
theForm.text.value = eventData;
theForm.xhtml.value = richedit.docXHtml;
theForm.submit();
}
&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;


Replied 26 Feb 2003 19:15:34
26 Feb 2003 19:15:34 Bill Chalmers replied:
According to your code you are trying to reach the richedit.html file from the editor.htm using /RTE_Files/richedit.html, which translates to the absolute url of :

actidesign.com/WJ_PHP/editor/RTE_Files/richedit.html

the correct absolute url of richedit.html is :

actidesign.com/WJ_PHP/editor/RTE_Files/richedit.html

which translates to the relative url of ../RTE_Files/richedt.html

put more simply, change your line of code from this:

&lt;object id="richedit" style="BACKGROUND-COLOR: buttonface" data="/RTE_Files/richedit.html"width="100%" height="100%" type="text/x-scriptlet"&gt;
&lt;/object&gt;

to this:

&lt;object id="richedit" style="BACKGROUND-COLOR: buttonface" data="../RTE_Files/richedit.html"width="100%" height="100%" type="text/x-scriptlet"&gt;
&lt;/object&gt;
Replied 26 Feb 2003 19:19:40
26 Feb 2003 19:19:40 Bouvet Philippe replied:
thanks, i will try to morrow.
phil
Replied 26 Feb 2003 19:19:45
26 Feb 2003 19:19:45 Bill Chalmers replied:
sorry posted before I could finish, you need to look closely at the URL's you are using, / before a resource indicated the request starts at the web servers root, so check out you url to the richedit.html file.
Replied 27 Feb 2003 07:39:44
27 Feb 2003 07:39:44 Bouvet Philippe replied:
Thank you for your help, it works: actidesign.com/WJ_PHP/editor/editor.htm
But my question is : ( I try to explain wiht my poor english).

I would be that my customers could change a page and save it. O f course, they can use copy and paste. But is it possible to use the button "save" for another page?

A sort of CMS. I hope you can understand what I mean.
Philippe

Reply to this topic