Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> OpenWYSIWYG Instead Of RichTextEditor, wysiwyg editor
Rating 3 V
sherifmayika
post Nov 16 2006, 07:18 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 23
Joined: 29-October 06
Member No.: 16,848



hi all,
For my newsletter scipt i am using richtext editor as the html edtor, I want to use openwysiwyg instead

'message_add_html.tpl' file is following. I dont know how to chage the script

any kind of help would be appreciated

sherif


CODE

<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>

                [color=#FF0000]<!-- 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 -->[/color]

            </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>
Go to the top of the page
 
+Quote Post
sherifmayika
post Nov 18 2006, 12:02 PM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 23
Joined: 29-October 06
Member No.: 16,848



both scripts can be downloaded from the following sites.
http://richtext.sourceforge.net/
http://www.openwebware.com/products/openwysiwyg/
Go to the top of the page
 
+Quote Post
toby
post Nov 18 2006, 01:45 PM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 488
Joined: 29-September 06
Member No.: 16,228



Try making it file.html then opening in a browser.
Go to the top of the page
 
+Quote Post
sherifmayika
post Nov 20 2006, 12:47 PM
Post #4


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 23
Joined: 29-October 06
Member No.: 16,848



thanx 4 the response,
it works as a .html file but i dont how to add this to my .tpl file and connect to my db . see the tpl csript above.

sherif

This post has been edited by sherifmayika: Nov 20 2006, 12:53 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Online HTML/PHP Editor: Edit File In Browser!(8)
  2. Context Programmer's Editor(2)
  3. Microsofts Acrylic(1)
  4. Php Designer 2005(1)
  5. Wysiwyg Html Text Box(2)
  6. Html Editor(11)
  7. Php Designer 2005(0)
  8. Whats A Good Graphics Editor For Solaris 10 ?(8)
  9. Paint.NET Project - A Free Picture Editor(2)
  10. Performancing For Firefox - Blogger's Delight !(2)
  11. Where Can I Find An .exe Editor(21)
  12. FaceFilter Studio 1.0518.1(0)
  13. Any Ideas About A Free Online Page Editor ?(7)
  14. HTML Editor(23)
  15. Looking For A Great Source Code Editor For(5)
  1. Any BBCode Editor Around?(1)
  2. Zoho Writer(5)
  3. Where Can I Get Microsoft Photo Editor?(11)
  4. PHP Designer Vs. HTML Kit(7)
  5. CSS Editor(11)
  6. Php - Browser Based Editor(3)
  7. Pagebreeze: The Free Html Editor!(7)
  8. Which Web Editor Software?(22)
  9. Greenfish Icon Editor Pro(12)
  10. What Is A Good Photoeditor?(6)
  11. Picnik, An Online Photo Editor(6)
  12. Is There A Php Editor That Runs On Pclinuxos Or Ubuntu?(7)
  13. Web Editor(0)


 



- Lo-Fi Version Time is now: 6th September 2008 - 01:26 AM