Wednesday, March 9, 2011

Increase Rich Text Editor’s Field Width in SharePoint site


There are times when you would like that the rich text editor on your SharePoint site fits the entire page width so that you can edit the content easily. By default, the editor field is around 400 pixels in width and does not increase beyond it. It is due to the CSS style applied on that SharePoint field control.

I wanted something like this on my site:


This is how you achieve it:
https://zsharepoint.wordpress.com/2013/05/15/sharepoint-101-full-width-rich-text-editor/

Thanks to Zach. This was a very simple CSS hack to modify the width of the rich text editor.

1. Create a new .css file and enter the following code over there:

#onetIDListForm, #onetIDListForm .ms-formbody, #onetIDListForm 
iframe[title="Rich Text Editor"]{width:100% !important;} 
.ms-formbody span span div iframe, .ms-formbody span span 
table.ms-long{width:100%; text-align:left;} 

2. Save the .css file in a document library on your site.
3. Reference the .css file in the masterpage using the following code.

NOTE: There is some problem with blogger, not allowing me to post the entire code. Please refer to the link mentioned above for the code to reference your CSS file in your masterpage. 4. Save the changes to MasterPage and refresh the page.

Or you can check out my another blog - http://sharepointservices.wordpress.com/2011/03/09/increase-rich-text-editors-field-width-in-sharepoint-site

Tuesday, March 1, 2011

An error occurred during the compilation of the requested file, or one of its dependencies.

Issue:
You have done a standalone installation of SharePoint 2010 on a Windows 7 machine. This machine will be mostly used as a development machine. No error messages are received during the set up or while running the configuration wizard. In Central Administration website, when you click on links like "Services on server, Manage service applications, or when you try to navigate to the Web Application's general settings, etc, you get the following error.

The error comes intermittently, but, mostly on the links mentioned above.

Error:
An error occurred during the compilation of the requested file, or one of its dependencies.

Following error is logged in the ULS logs:
Error from ULS Logs of the server:

System.Web.HttpCompileException: External component has thrown an exception. at System.Web.Compilation.AssemblyBuilder.Compile() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert...

Cause:
Compatibility issue between SharePoint 2010 and Windows 7.

Resolution:
Restart the machine where you have installed SharePoint 2010.
Just a restart of the machine should usually resolve the issue for you. In case, the issue rises again after few days, you need to restart the machine. Also, we should not that SharePoint 2010 on Windows 7 is not supported, so we have to live with this work-around for now.

Update (20-September-2011)
If you have a standalone installation on Windows 7 machine, delete the "User Profile Synchronization" service applications from your farm and do an "iisreset". This should take care of the problem and a reboot may not be required everytime.

You might find these articles useful