I am currently experiencing an issue between the Kendo ContextMenu and the Kendo EditorFor. When I open the ContextMenu inside of the EditorFor it display offset relative to the cursor, both the left and top values are completely incorrect relative to the editor.
Attached you will find a solution where this issue has been replicated, I removed the scripts folder in order to keep the file size small. I hope this can be fixed soon.
Thanks for the reply,
I would like it to be displayed to the bottom right of the cursor, like when clicking on a regular textbox. I had opened a ticket with telerik where I was trying to use a kendo editorfor inside of an MVC editor template which was not triggering the context menu to open on right click, I was informed that I would have to set the target of the context menu to the editor. This rolls into the second point, this was a proof of concept for a larger page with multiple editors where I did not want to have a context menu for each single editor. The context menu target would be set when the user clicked into the editor. Onto the third point, initializing the context menu on document.ready wasnt targeting the correct editor, my solution was to dynamically bind so it would appear in the desired editor.
I tried testing it in my current solution with no luck, I can provide you with the support ticket I opened if that would be helpful, still having issues.
target: $(editor.document).find(
"html"
),
target: $(
".k-i-custom-button"
),
target: $(
".k-editor-toolbar-wrap"
),
target: $(
".k-editable-area"
),
.CustomButton(button => button
.Name(
"customButton"
)
.Exec(
"onClick"
)
.ToolTip(
"Insert a Snippet"
))))