split html ol and ul

2 posts, 0 answers
  1. Vishul
    Vishul avatar
    7 posts
    Member since:
    Jun 2013

    Posted 01 Jan 2015 Link to this post

    Hello,

    when i paste some content from word in editor html tags are replaced with br.

    eg as i paste this from word:

    Some Text
    Some Text
    Some Text

    .Vishy1
    ·Vishy2
    ·Vishy3

    Some Text
    Some Text
    Some Text


    1.vishy1
    2.vishy2
    3.vishy3

    Some Text
    Some Text
    Some Text

    It is converted as:


    Some Text
    Some Text
    Some Text

    Vishy1 (list replaced with  br)
    Vishy2
    Vishy3

    Some Text
    Some Text
    Some Text

    vishy1 (list replaced with  br)
    vishy2
    vishy3

    Some Text
    Some Text
    Some Text

    they all are inside a p tag

    I want them to split by list tags as content before lists in a paragraph tag and content after lists in a paragraph tag.

  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 05 Jan 2015 Link to this post

    Hi Vishul,

    You can control and manipulate the pasted content via the OnClientPasteHtml event and achieve the required result.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top