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

Is there any way to manipulate the editor content by using JavaScript? My ultimate goal is to allow user to click a button on ribbon bar, and JS will help to insert some predefined template html into the editor for editing. The whole concept is similar to reusable content, only reusable content is readonly after inserting.

I have no problem in adding the button to ribbon bar, but I cant find anyway to manipulate the HTML content inside the editor.

Thanks in advance.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.