SharePoint 2010 – Create Custom Style for SharePoint Rich Text Editor. – Create Custom Table Style

יום ראשון, אפריל 10, 2011

Inside SharePoint Rich Text Editor you can use some predifined style for example this picture shows predifined styles for table's element. If you want to add or edit those styles, you can do this inside corev4.css, which is placed inside this directory for English Installation - 1033 Directory. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\1033\STYLES\Themable\COREV4.CSS Open this file and find for example "Default Table Style - Light" - first predefined style. .ms-rteTable-default, .ms-rteTableHeaderFirstCol-default, .ms-rteTableHeaderLastCol-default,.ms-rteTableHeaderOddCol-default, .ms-rteTableHeaderEvenCol-default, .ms-rteTableFirstCol-default,.ms-rteTableLastCol-default, .ms-rteTableOddCol-default, .ms-rteTableEvenCol-default,.ms-rteTableFooterFirstCol-default, .ms-rteTableFooterLastCol-default, .ms-rteTableFooterOddCol-default,.ms-rteTableFooterEvenCol-default, TD.ms-rteTable-default, TH.ms-rteTable-default, .ms-rtetablecells{-ms-name:"Default Table Style - Light";/* */ border:solid 1px #c4c4c4;padding:2px;vertical-align:top;} Copy all this part of style definition and paste it, give new name for style's...
אין תגובות