PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old November 16th, 2006, 06:28 AM
sherifmayika sherifmayika is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 sherifmayika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 5 sec
Reputation Power: 0
openwysiwyg instead of richtexteditor

Hi all,
For my newsletter scipt i am using 'rich text editor' as the html edtor, I want to use 'openwysiwyg' instead


'message_add_html.tpl'file is following.

any kind of help would be appreciated

sherif

...............................................,..
<tr>
<td align="left" valign="top" width="25%" rowspan="1" bgColor="#FFFFFF">
<b>Add new message: </b>
</td>
<td bgColor="white" valign="top">
<table width="100%" border="0" cellPadding="0" cellSpacing="0">

<form id="form_message_add" action="do_add_message.php" method="post">
<tr>
<td width="25%"><b>Subject:</b></td>
<td><input type="text" name="subject" value="" size="43"></td>
</tr>
<tr height="10"><td></td></tr>
<tr>
<td><b>Message Type:</b></td>
<td>[ <a href="messages_edit.php">plain text</a> ] [ <b>html enhanced</b> ]</td>
<input type="hidden" name="type" value="html">
</tr>
<tr height="10"><td></td></tr>
<tr>
<td>
<input type="checkbox" class="noborder" name="disabled">&nbsp;<b>Disable</b>
</td>
<td>
<font size="1">You can temporarily disable a message, so that it won't be delivered to your prospects until you re-enable it.</font>
</td>
</tr>
<tr height="10"><td></td></tr>
<tr>
<td>
<b>Interval:</b>
</td>
<td>
<input type="text" name="interval" value="0" size="5">
&nbsp;(max. 9999)
</td>
</tr>
<textarea name="body" style="display: none" cols="60" rows="15"></textarea>
</form>

<tr height="10"><td></td></tr>
<tr>
<td colspan="2">
<b>Body:</b><br><br>

<!-- HTML EDITOR -->
<object id="richedit" style="BACKGROUND-COLOR: buttonface" data="rte/richedit.html"
width="600" height="300" type="text/x-scriptlet" VIEWASTEXT>
</object>

<!-- Glue to populate the editor with HTML from database -->
<SCRIPT language="JavaScript" event="onload" for="window">
richedit.options = "history=yes;source=no;";
richedit.docHtml = form_message_add.body.innerText;
</SCRIPT>
<!-- HTML EDITOR -->

</td>
</tr>
<tr height="10"><td></td></tr>
<tr>
<td colspan="2"><input type="button" value="Add Message" onClick="MakeSubmit();"></td>
</tr>
</table>
</td>
</tr>

<script language="JavaScript">
function MakeSubmit()
{
form_message_add.body.value = richedit.docHtml;
form_message_add.submit();
}
</script>

Reply With Quote
  #2  
Old November 18th, 2006, 11:13 AM
sherifmayika sherifmayika is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 sherifmayika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 5 sec
Reputation Power: 0
RE: openwysiwyg instead of richtexteditor


both scripts can be downloaded from the following sites.
http://richtext.sourceforge.net/
http://www.openwebware.com/products/openwysiwyg/

Reply With Quote
  #3  
Old November 18th, 2006, 11:13 AM
sherifmayika sherifmayika is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 5 sherifmayika User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 5 sec
Reputation Power: 0
RE: openwysiwyg instead of richtexteditor


both scripts can be downloaded from the following sites.
http://richtext.sourceforge.net/
http://www.openwebware.com/products/openwysiwyg/

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > openwysiwyg instead of richtexteditor


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway