Source code shows <div> instead of <p>

Last post 04-10-2008, 12:17 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  04-10-2008, 11:17 AM 39043

    Source code shows <div> instead of <p>

    I'm thinking of purchasing the developer license for PHP, however while using the demo I've noticed something which may be a problem.
     
    When I view the source it seems to create <div>'s instead of <p> tags. So a simple bit of code like...
     
    <p>This is a test</p>
    <p>Testing testing 123</p>
     
    ends up like this when you use the wysiwyg editor
     
    <div>this is a test</div>
    <div></div>
    <div>testing testing 123</div>
    <div></div>
     
    Is there a way around this? surely this is not how the editor is designed.
  •  04-10-2008, 12:17 PM 39048 in reply to 39043

    Re: Source code shows <div> instead of <p>

    creativewithtechnology,
     
    Please check the following property:
     

    Editor.BreakElement Property

    Specify the behavior when the "enter" key is pressed in the editor The default is Div.

     


    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             $editor->BreakElement="Br";
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

     

     

    Members

    Member Name Description
    Div use <div > tags on enter keypress instead of <p></p>tags
    Br use <br> tags on enter keypress instead of <p></p>tags
    P Enter key inserts new paragraph, Ctrl+Enter inserts <br>
     
     
    Hope it helps.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML