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

[Solved] Editor Caret with Inserted HTML

2 Answers 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stephen
Top achievements
Rank 1
Stephen asked on 26 Mar 2012, 01:24 AM
Hi,

I am using the Telerik Editor to provide forum like functionality.  One piece of functionality common on forums is to be able to quote another user's post for which I am using the HTML BlockQuote element.  If I set the initial value of the editor to something like:

<label>Stephen</label>
<blockquote><p>Puppies and kittens.</p><p>Sunshine and rainbows</p></blockquote>

What happens is that the caret when editing refuses to move outside of the blockquote element.  This is especially annoying because blockquote applies an indent.  Even trying to use the toolbar to change the style from quotation to paragraph doesn't do anything.

The only way I have been able to figure out a way past it is to provide an additional p element after the block quote with dummy (non-whitespace) text.  (e.g. ...</blockquote> <p>To be or not to be.</p>)

Is there a more elegant way to solve this issue?

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 26 Mar 2012, 12:19 PM
Hello Stephen,

It appears that this is a bug with the kendo editor, as it should accept the empty paragraph. Your Telerik points have been updated for the bug report.

We have fixed the bug, and the fix will be available with the next internal build. A possible work-around until you upgrade is to insert a <br /> element in the empty paragraph, as it will be visible only in IE.

Greetings,
Alex Gyoshev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Stephen
Top achievements
Rank 1
answered on 26 Mar 2012, 10:03 PM
Thanks for the quick response Alex.  I'll look forward to the next update then.
Tags
Editor
Asked by
Stephen
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or