vincent_danvoye
|
| Posted: 09/13/2002, 6:24 AM |
|
I have put an article about the above in the Tips and Articles Section.
Hope this can be useful.
http://www.gotocode.com/art.asp?art_id=219&
Vince
|
|
|
 |
Vince Rubus
|
| Posted: 09/25/2002, 10:20 AM |
|
Hi Vince,
Your code is for php.
Can you translate it to ASP ???
thankssssssss
V. Rubus
|
|
|
 |
fcy
|
| Posted: 09/25/2002, 10:30 AM |
|
Instructions are the same...
I used the table field Content and table Documents. I created a new page called Page from start with just one form named Form1. Form Action set to Page, just so you can see if the edits work easily. PKfield was Document ID, hidden and Contents, set to label, was memo with html checked. Page type was Record, Input variable Document ID and set to transfer.
******Page Header******
<!-- ---------------------------------------------------------------------- -->
<!-- START : EDITOR HEADER - INCLUDE THIS IN ANY FILES USING EDITOR -->
<script language="Javascript1.2" src="editor.js"></script>
<script>
// set this to the URL of editor direcory (with trailing forward slash)
// NOTE: _editor_url MUST be on the same domain as this page or the popups
// won't work (due to IE cross frame/cross window security restrictions).
// example: http://www.hostname.com/editor/
_editor_url = "";
</script>
<style type="text/css"><!--
.btn { BORDER-WIDTH: 1; width: 26px; height: 24px; }
.btnDN { BORDER-WIDTH: 1; width: 26px; height: 24px; BORDER-STYLE: inset; BACKGROUND-COLOR: buttonhighlight; }
.btnNA { BORDER-WIDTH: 1; width: 26px; height: 24px; filter: alpha(opacity=25); }
--></style>
<!-- END : EDITOR HEADER -->
<!-- ---------------------------------------------------------------------- -->
<style type="text/css"><!--
body, td { font-family: arial; font-size: 12px; }
.headline { font-family: arial black, arial; font-size: 28px; letter-spacing: -2px; }
.subhead { font-family: arial, verdana; font-size: 12px; let!ter-spacing: -1px; }
--></style>
******Before Show******
fldContent = "<textarea name=""Content"" cols=""60"" rows=""30"">" & _
fldContent & "</textarea> <script language='javascript1.2'> editor_generate('Content'); // field, width, height </script>"
******Custom Action*****
'-------------------------------
' Load all form fields into variables
'-------------------------------
fldContent = GetParam("Content")
'-------------------------------
' Create SQL statement
'-------------------------------
select case sAction
case "insert"
sSQL = "insert into Documents (" & _
"[Content])" & _
" values (" & _
ToSQL(fldContent, "Memo") & _
")"
case "update"
sSQL = "update Documents set " & _
"[Content]=" & ToSQL(fldContent, "Memo")
sSQL = sSQL & " where " & sWhere
case "delete"
sSQL = "delete from Documents where " & sWhere
end select
'-------------------------------
|
|
|
 |
vincent_danvoye
|
| Posted: 09/25/2002, 10:36 AM |
|
Vince,
I'm afraid I can't help... I have no experience with ASP.
Nicole, could you help here?
Vincent
|
|
|
 |
VINCE RUBUS
|
| Posted: 09/25/2002, 11:24 AM |
|
Hi,
I just figured out how to apply the htmlarea in ASP code:
Just build the record page you want the textarea appears, and manually edit the
corresponding .html file putting the code in the <head> area, and the code after the </textarea>. Don't forget to make the reference to the correct textarea name.
Is realy easy, just follow the htmlarea read me file and edit manually the .html code.
|
|
|
 |
Murillo Paiva :-)
|
| Posted: 09/25/2002, 2:24 PM |
|
I ask for aid to apply the Publishing WYSIWYG of interactivetools with the CodeCharge Studio. I looked at for the example excellent of the Vincent for CodeCharge 2 - It functioned very well! Somebody can help me with CodeCharge Studio with Publishing WYSIWYG?
thanks (Murillo Paiva)
|
|
|
 |
Jeff Thurston
|
| Posted: 03/28/2003, 10:57 AM |
|
Instead of having to edit your html file everytime becuase it will be overwritten when you regenerate your page. Try this:
1) Make sure that all of the htmlarea files are under the directory where your project is located. I named this directory htmlarea which you can see in the bottom code.
2) Go to PAGE PROPERTIES -> HEADER&FOOTER on the page where you want implement this. Make sure the Customer<head>section box is selected. Paste the following header script in this box.
<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "html/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>
3) Paste the follwing code to the right of the caption field for your text area.
<script language="JavaScript1.2" defer>editor_generate('inputname');</script>
Replace 'inputname' with the field name (not the fldname) but the actual field name you are using.
This is what is working for me.
|
|
|
 |
Angelito
|
| Posted: 07/22/2003, 1:44 PM |
|
Hello Vincent
I've browse through the threads regarding the integration of WYSIWYG editors and they get very intense. Can you point me towards an implementation in Perl?
Thanks,
Angelito
|
|
|
 |
DataObjx
|
| Posted: 07/29/2003, 12:14 PM |
|
Those wishing to install the richtext.sourceforge.net editor into a CodeCharge Studio Application can send me an email. Please place the following in the subject line.
Subject Line : RICH TEXT EDITOR TUTORIAL REQUEST
Email Address:admin@dataobjx.com
|
|
|
 |
DaveRexel
|
| Posted: 07/29/2003, 1:44 PM |
|
:.:.:
This tutorial might help http://www.rexdesign.com/ccs/kb.php?language_id=1&categ...=39&event_id=58
(free registration required)
|
|
|
 |