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

[Solved] Editor doesn't work when using ClientEvents

0 Answers 89 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.
Pieter
Top achievements
Rank 1
Pieter asked on 14 Oct 2011, 01:09 PM
In version 2011-2-914 the editor doesn't work when I try to add ClientEvents.

I have a working editor. But now I want to add the OnPaste event. When I add the code to catch this event in the editor, the editor doesn't work anymore. The editable area (from what I see, it should be an iframe) isn't rendered anymore. The rest of the editor renders fine, but I can't edit anything. Also, the buttons no longer have the title-attribute and the hover-event doesn't work.

Is this a known problem, or am I doing something wrong. Below is the code I'm using. Without the call to ClientEvents, everything works fine.

Html.Telerik().EditorFor(m => m.Remark).ClientEvents(e => e.OnPaste("Remark_OnPaste")).Encode(false).Tools(cfg => cfg.Clear().Bold().Italic().Strikethrough().Underline().InsertOrderedList().InsertUnorderedList().JustifyLeft().JustifyCenter().JustifyRight().JustifyFull().Unlink().CreateLink()).Localizable("nl-NL").Render();

Tags
Editor
Asked by
Pieter
Top achievements
Rank 1
Share this question
or