SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to add some logic when a HTML element (input, button, .. but no regular text) is clicked inside the RTE control on a publishing page. One of the solutions I've been thinking about is hooking into the RTE javascript right after the spot where the selection has been set (visible in the UI on HTML elements).

Are there other (cleaner) alternatives? I'm not sure where RTE.Cursor.$Ez_0 is coupled to the click event (this seems to be the entry point).

share|improve this question

closed as off-topic by Mike, Benny Skogberg Jan 8 '14 at 20:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions not specific to SharePoint are off-topic here, but can be asked on Stack Overflow." – Mike, Benny Skogberg
If this question can be reworded to fit the rules in the help center, please edit the question.

What version of SharePoint is this? But as a preliminary answer you either provide an override page or hook into the JS function (Your presumption) these would be the best approaches. – Hugh Wood Dec 11 '13 at 14:18
As Hugh said depends on the version you have. Are you creating the input and button in the RTE directly ? Will like to embed a form in the RTE? – Stefan Bauer Dec 13 '13 at 11:23