This is a migrated thread and some comments may be shown as answers.

split html ol and ul

1 Answer 22 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vishul
Top achievements
Rank 1
Vishul asked on 01 Jan 2015, 12:10 PM
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.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 05 Jan 2015, 03:15 PM
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.

 
Tags
Editor
Asked by
Vishul
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or