WYSIWYG text area editors

M

Mike Stumpo

I am currently reviewing a wysiwyg text area editor and
have it working except for one thing.

Once the edit.asp (via the DIW)page submits the data
entered, the data sent to the database is escaped HTML.

I realize this may not be the proper place to ask this,
but maybe someone in the forum may be able to point me in
a direction. The developer is looking into it but they
have never gotten a request from a FrontPage user.

here is the code for the plugin when creating the record:

<!-- ********** BEGIN COPY *********** -->
<script LANGUAGE="javascript"
SRC="../inc/HTMLRichTextArea.js" ></script>
<script LANGUAGE="javascript"
SRC="../inc/HTMLRichTextAreaFactorySettings.js" ></script>
<script LANGUAGE="javascript">
<!--
var strDefaultHTML = "";
new HTMLRichTextArea
("explanation",100,150,strDefaultHTML).Draw();
//-->

explanation is the text area.

The edit page code is:

<!-- ********** BEGIN COPY *********** -->
<script LANGUAGE="javascript"
SRC="../../../inc/HTMLRichTextArea.js" ></script>
<script LANGUAGE="javascript"
SRC="../../../inc/HTMLRichTextAreaFactorySettings.js"
</script>
<script LANGUAGE="javascript">
<!--
var strDefaultHTML = "<%=FP_Fieldhtml
(fp_rs,"explanation")%>";
new HTMLRichTextArea
("explanation",80,150,strDefaultHTML).Draw();
//-->
</script>
<!-- ********** END COPY ************* -->

As you can see, the "<%=FP_Fieldhtml(fp_rs,"explanation")%
is pulling in the code from the database (which prior
to editing is NOT escaped HTML)

Any help would be appreciated.

-M
 
A

Andrew Murray

perhaps a programming/scripting newsgroup? eg asp or javascript.

alt.comp.lang.javascript
alt.activeserverpages
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top