Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.