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

Inline Editor not accepting input

2 Answers 188 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 22 Aug 2013, 06:27 PM
Hi,
I have been trying to use the new inline editing capability, but the editor will not take any keyboard our mouse input.  I can see the content if I manually edit the HTML or set it in js using .value(), but I cannot type or select the content with the mouse.  The HTML in the inspector looks just like the demo after calling .kendoEditor() on the JQuery object:

<div contenteditable id="editor" class="k-widget k-editor k-editor-inline k-state-active" data-role="editor">Test text</div>

It seems as though something is stealing the mouse/keyboard input, but I have disabled all other event handlers and it still does not work.  Any help you can provide is greatly appreciated.

UPDATE: It appears that the keydown and keyup events on the editor are indeed firing.

Regards,
Sam

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 26 Aug 2013, 11:37 AM
Hello Sam,

It is still unclear what causes the described problem. Can you provide more information that can help us reproduce the issue, or even better, a runnable demo? Did you verify there are no Javascript errors on the page?

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sam
Top achievements
Rank 1
answered on 26 Aug 2013, 03:56 PM
Hi Dimo,
Thanks for your reply, I actually figured out the problem.  I had "user-select: none;" set on the body of the document, which was disallowing "contentEditable" to work as intended.

Regards,
Sam
Tags
Editor
Asked by
Sam
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Sam
Top achievements
Rank 1
Share this question
or