This is a migrated thread and some comments may be shown as answers.
Issue In Editor order list on Copy Paste text
1 Answer 20 Views
This is a migrated thread and some comments may be shown as answers.
Elango
Top achievements
Rank 1
Elango asked on 05 Apr 2016, 05:20 PM

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

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 07 Apr 2016, 07:18 AM
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—http://stackoverflow.com/questions/1275250/is-there-an-easy-way-to-convert-html-with-multiple-br-tags-into-proper-surrou.

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Asked by
Elango
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or