Issue In Editor order list on Copy Paste text

2 posts, 0 answers
  1. Elango
    Elango avatar
    2 posts
    Member since:
    Dec 2015

    Posted 05 Apr Link to this post

    When user copy paste the listed items from notepad or textpad to editor and clicking on the bullet\numbering list icon the whole text is considered as single item as shown (Before and After selecting Order List Image).

    Please provide us the solution to fix this issue

  2. Ianko
    Ianko avatar
    1507 posts

    Posted 07 Apr Link to this post

    Hello Elango,

    Using a plain text editor produces only plain text. Thus, the new lines are separated by carriage returns and not formed as paragraphs. 

    When pasted browser transforms these carriage returns to BR tags, which are not proper block elements to form a single list item. Therefore, the entire paragraph is formed to a single list item. 

    You can handle this scenario as a custom solution by handling the paste event and processing the content pasted. For example, when plain text is pasted, BR tags that form new line feeds to be removed and separate lines to be wrapped in P tags. This Stackoverflow discussion might help you further with this case—

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top