Enter in div giv new div not p

Last post 03-28-2014, 12:00 PM by Kenneth. 4 replies.
Sort Posts: Previous Next
  •  09-17-2013, 7:03 AM 77990

    Enter in div giv new div not p

    Hi.

    Is it posible to get the editor to giv an new P when you press enter in an cleen div? Now you get an new div.

     

    // Kent

  •  09-17-2013, 1:12 PM 77991 in reply to 77990

    Re: Enter in div giv new div not p

    Hi KentM,

     

    You can set property "EnterKeyTag" to control the enter key behavior, like below.

    Can be set to "P", "BR", "DIV".

     

     <RTE:Editor ID="editor1" runat="server" EnterKeyTag="P" />

     

    Regards,

     

    Ken 

  •  10-01-2013, 2:39 PM 78039 in reply to 77991

    Re: Enter in div giv new div not p

    Hi,

     

    Let me explaine better

    Example: editor RitchTextEditor

     

    My config is:

    1. enterkeytag = p  
    2. shiftenterkeytag = br 

    Start Html:

    1. <div>Test div</div> 

     Put cursor att end of Test and press enter givs:

    1. <div> test</div>  
    2. <div> div</div>  

    But in my web developers opinion this should give:

    1. <div> test  
    2. <p>div</p>  
    3. </div>  

     

     // Kent

  •  10-07-2013, 8:22 AM 78059 in reply to 78039

    Re: Enter in div giv new div not p

    Hi KentM,

     

    Yes, I can reproduce the same problem too, I will report it to the development team to check this. Once issue is fix, I will keep you posted.

     

    Regards,

     

    Ken 

  •  03-28-2014, 12:00 PM 80177 in reply to 78059

    Re: Enter in div giv new div not p

    Hi,

     

    We have fixed this issue, please download the latest build at http://richtexteditor.com/download/richtexteditor.rar  and try again.

     

    Regards,

     

    Ken 

View as RSS news feed in XML