Posts

Showing posts from February, 2013

Preventing copy-paste all the rich text editor in SharePoint

Image
As part of an accessible Web sites in SharePoint, this time I will present the code prevents the copy-paste. The following code prevents copy-paste content editor rich text field /*  ECM  */ function disablePasteForRTE() {     Type.registerNamespace( "RTE" );     if (RTE) {         if (RTE.RichTextEditor != null ) {             RTE.RichTextEditor.paste = function () {                 RTE.Cursor.paste( true );             }             RTE.Cursor.$3C_0 = true ;         }     } } if (_spBodyOnLoadFunctionNames != null ) {     _spBodyOnLoadFunctionNames.push( 'disablePasteForRTE'...

Construction of correct design patterns in SharePoint

Image
As in the previous post, to avoid content editor put the wrong color and not merit. You need to built styles for content editor How do I add style? Add the following CSS code to the Master-Page h1.ms-rteElement-YourTitle {     -ms-name : " Your Title " ;     font-family : arial ;     font-weight : bold ;     font-size : 14.5pt ;     color : #9bbe08 ;     height : 33px ;     line-height : 33px ; } Thanks, Roi

Prevention design is not good for Accessibility in SharePoint

Image
Often, the editors of the content of Web sites write the content and design they give does not match the colors of the site and do not match the colors of accessibility. To prevent them from putting bright pink, or to establish rules, remove the redundant design. Before After Put the following CSS code in your Master Page (preferably course file) #Ribbon\.EditingTools\.CPEditTab\.Font {     display : none ; } #Ribbon\.EditingTools\.CPEditTab\.Paragraph-Large-0-0-0 , #Ribbon\.EditingTools\.CPEditTab\.Paragraph-Large-0-0-1 {     display : none ; } Yours, Roi

Website Accessibility in SharePoint

Image
As part of my work I had to build accessible Web sites This article explains what is accessible and why we need it. The following articles explain how accessibility can be applied in practice in SharePoint What is Website Accessibility? Accessibility is defined as a need to increase the use of people with disabilities (blind, color blind, deaf, have problems with motor or cognitive) sites and computer systems. Accessible websites are websites that allow people with disabilities and older people to browse at the same level of efficiency and fun as surfing the Internet. Accessible Web Development is not just a matter of social responsibility and compliance with laws and regulations. December 2008 announced a new version with accessibility guidelines ( version 2.0 ) - This version is the binding version. Differences of the three access levels: • Priority 1 - A basic level of accessibility • Priority 2 - AA basic level of accessibility • Priority 3 - highly accessible AA...