How to make your own wysiwyg Editor?

Discussion in 'HTML & Website Design' started by Professional Dude, Aug 13, 2007.

  1. anandp_9

    anandp_9 Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    HI Friends,

    I am trying to maintain the content of webpages since two days.For this i am searching an editor(Good One). I got an openWYSIWYG editor here :

    www.openwebware.com.

    But still I am having problem with this. This editor is not displaying the php code. I am not able to configure out the reason.

    I will give you details clearly.....

    MY EXAMPLE CODE IS :

    <form action="" name="myform" method="POST">
    <script language="JavaScript" type="text/javascript" src="openwysiwyg/wysiwyg.js"></script>
    <textarea id="your_textarea" name="edit_txt" cols="60" rows="60"><? include("index.php"); ?></textarea>
    <script language="javascript1.2">
    generate_wysiwyg('your_textarea');
    </script>
    <br />
    <center><input type="submit" value="Save"></center>
    </form>
    <?php
    function kontrol($detay){
    $detay = trim($detay);
    $detay =str_replace("\\","",str_replace("\$","",$detay));
    return $detay;
    }
    $detay=kontrol($_POST['edit_txt']);
    print_r($detay);
    //echo $_POST['edit_txt'];
    $myFile="test.php";
    $handle = fopen($myFile, 'w');
    $Data = fwrite($handle, $detay);
    fclose($handle);
    ?>
    ===============
    But in test.php file I am not getting the total code from index.php.
    It is not displaying any php code there...Plz if anyone have idea about this leave me reply or send me mail to anand@mavininfotech.com..

    Hope somebody help me !

    Thx ,
    Anand kumar.
     
    anandp_9, Dec 28, 2007 IP
  2. anandp_9

    anandp_9 Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    Hello !

    NOBODY are here ?

    plz somebody respond me.......:mad:
     
    anandp_9, Dec 29, 2007 IP