This question is locked. New answers and comments are not allowed.
Our app requires the lines to be separated by <br/> instead of contained in <p/> elements. So we followed this solution: http://www.telerik.com/community/forums/aspnet-mvc/editor/use-lt-br-gt-for-enter-instead-of-lt-p-gt.aspx
Now, the next challenge is how to convert those lines into unordered list? The editor seems to look for <p>, and thus converts the whole text in the editor into a single bullet. Advice appreciated.
Now, the next challenge is how to convert those lines into unordered list? The editor seems to look for <p>, and thus converts the whole text in the editor into a single bullet. Advice appreciated.
4 Answers, 1 is accepted
0
Accepted
Hello AJI,
Atanas Korchev
the Telerik team
The Telerik editor works pretty much as MS Word. It creates paragraphs when the user presses "ENTER" and breaks when the user presses "SHIFT+ENTER". Additionally ordered and unordered lists are created based on block elements (paragraphs or divs). When you insert <br /> instead of <p> our code correctly creates one bullet for all content - the same happens in Word as well. I am afraid we cannot change that behavior easily. This would require modification in the source code - custom build which we have to maintain on every release.
Why do you need to use <br/> instead of <p> for new lines? If this is because of extra whitespace - we can rectify that easily with CSS.
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
AJI
Top achievements
Rank 1
answered on 05 Apr 2011, 07:08 PM
We need <br/> due to legacy issue, where we used an editor control that behaved that way. Modifying the content to have paragraphs instead of line breaks would mean code change to the users of our system.
We're pursuing the CSS solution now. Thank you for your quick response.
We're pursuing the CSS solution now. Thank you for your quick response.
0
AJI
Top achievements
Rank 1
answered on 05 Apr 2011, 11:35 PM
We're having difficulty applying CSS for the <p> elements inside the Editor control itself. We see that the Editor iframe has the inline page style for <p>, and we want to override it. Any advice?
0
Hi,
You can specify custom stylesheets to be imported in the editor iframe by following the instructions here - Defining Custom Styles
I hope this helps.
Best Regards,
Tsvetomir Tsonev
the Telerik team
You can specify custom stylesheets to be imported in the editor iframe by following the instructions here - Defining Custom Styles
I hope this helps.
Best Regards,
Tsvetomir Tsonev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items