Show code in php

Last post 09-14-2010, 1:54 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  09-11-2010, 5:29 AM 63935

    Show code in php

    Hello,

    I have a problem.
    I take the code in my php:

    <php
    $content = '<div><p>headline</p>
    <p>';

           $editor=new CuteEditor();
           $editor->ID="text";
           $editor->Text="";
           $editor->EditorBodyStyle="font:normal 12px arial;";
           $editor->EditorWysiwygModeCss="php.css";
           $editor->AutoConfigure = "Simple";
           $editor->ThemeType = "Office2003";
           $editor->Height = 250;
           $editor->Draw();

    $content .= '</p></div>';
    ?>

    But the editor is shown over the "headline".

    Have you any ideas to show the editor in the DIV ?

    Thank you so much for help! 
    Mathias
     
    -------------------------------------------------------------
    (edit: i post the completly code)
     
    <php
     
    include_once("cuteeditor_files/include_CuteEditor.php");
     
    $content = '<div><p>headline</p>
    <p>';

           $editor=new CuteEditor();
           $editor->ID="text";
           $editor->Text="";
           $editor->EditorBodyStyle="font:normal 12px arial;";
           $editor->EditorWysiwygModeCss="php.css";
           $editor->AutoConfigure = "Simple";
           $editor->ThemeType = "Office2003";
           $editor->Height = 250;
           $editor->Draw();

    $content .= '</p></div>';

    echo $content;
    ?>
     
    Does anyone have any idea?
     
  •  09-13-2010, 2:49 PM 63965 in reply to 63935

    Re: Show code in php

    Dear korty,
     
    Please try the following code:
    <?php  include_once("cuteeditor_files/include_CuteEditor.php");  
    $content = '<div><p>headline</p>
    <p>';
           $editor=new CuteEditor();
           $editor->ID="text";
           $editor->Text="";
           $editor->EditorBodyStyle="font:normal 12px arial;";
           $editor->EditorWysiwygModeCss="php.css";
           $editor->AutoConfigure = "Simple";
           $editor->ThemeType = "Office2003";
           $editor->Height = 250;
           $content .=$editor->GetString();
           $content .= '</p></div>';
           echo $content;
    ?> 
    Thank you for asking
  •  09-14-2010, 7:49 AM 63990 in reply to 63965

    Re: Show code in php

    Hello Eric,
     
    yes!! the editor is on the right place, but I have now is by a new problem:
    the toolbars are not visible and ms internet explorer writes:

    Details zum Fehler auf der Webseite

    Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
    Zeitstempel: Tue, 14 Sep 2010 12:38:32 UTC

    Meldung: Syntaxerror
    Zeile: 131
    Zeichen: 35
    Code: 0
    URI: [...] 
     
    i think it is anything wrong with the java script?
     
    request html (php) content code from the editor:
     
    thank you Eric for help
  •  09-14-2010, 1:54 PM 64000 in reply to 63990

    Re: Show code in php

    Dear korty,
     
    I searched "contentcode editor.htm" in whole project, cannot find this file. Can you create one example which can reproduce this issue? You can send it to [email protected] , we will check it.
     
    Thank you for asking
     
     
View as RSS news feed in XML