I have figured out how to disable font options when I am creating content using a page, or more importantly the PublishingWebControls:RichImageField.

But when users create a new blog entry, the modal dialog/form pops up and the font family option is visible. The thing is a 'blog' entry id a list item.

How do I edit the PublishingWebControls:RichImageField for a list item?



A little bit of history.

We wanted to lock down how users create content. So our goal was to disable the font family, font size and font color controls.

I always thought the key was to configure the RichHtmlField. It worked for page content, becuase the control was in a page layout. But for list items, there is/was no page layout for the RichHtmlField to be configured. So I figured that any solution would require cracking open Visual Studio.

But it turns out, it only took 2 simple lines of CSS ...

#Ribbon\.EditingTools\.CPEditTab\.Font-Large-0-1-1 { display:none; }

I hope this can help some people out because I have no idea how many days I blew trying to fix this.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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