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

I am looking for a way to control the rich text options availabe in the new SharePoint 2010 wiki sites - not the Enterprise Wikis, but the new wiki format that is the default team site template.

On our publishing site, I was able to easily do this by adding a few properties to the HTML Field Control in the page layout. For instance, using the PrefixStyleSheet property I was able to completely customize the items available in the Styles and Markup Styles menus.

However, I've been unable to locate any page layout-like file to modify these settings on the new wiki-based team sites.

If nothing else, I would like to be able to customize the items in the Markup Styles menu, removing some of the styles and adding a few new ones. I would prefer NOT to edit the OOTB styles to do this.

Can it be done?

share|improve this question

1 Answer 1

Insert this at the bottom of your masterpage before the </body> end tag:

<script type="text/javascript">
    $(document).ready(function () {
        $("div[RteRedirect]").each(function () {
            var id = $(this).attr("RteRedirect");
            editSettings = $("#" + id);
            if (editSettings.length > 0 && editSettings[0].PrefixStyleSheet != 'YOUR_PREFIX_HERE') {
                editSettings[0]['PrefixStyleSheet'] = 'YOUR_PREFIX_HERE';

It requires jQuery though for the above to work.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.