How do I add options to the wiki editor for fonts, sizes and styles via a template?
|
2
|
FogBugz 8The guide below is for version 7 only. FogBugz 8 introduced a new editor, CKEditor, which unfortunately removed this feature. See this post for more information. FogBugz 7Each Wiki in FogBugz has a template assigned to it. In the template, you can customize the HTML and CSS of pages. You can change existing options by changing these classes in the template CSS, and add new ones by following the existing examples. Just look for the section headers in the template as shown below: Font FamiliesFonts Families must define the font-family property. They can include other CSS properties, but it can get confusing. e.g. if you define font-size, the style will also appear in the size menu.
Font SizesSizes must define the font-size property. They can include other CSS properties, but it can get confusing. e.g. if you define font-family, the style will also appear in the font menu.
Paragraph StylesThese show up in the menu under the Body entry in the style menu.
Code Blocks & QuotesThere is only one Code option in the style menu, but you can change its properties by adding something like (make sure the C in Code is capitalized):
You can also modify the single Quote style in this way. Again, make sure the Q in Quote is capitalized:
Heading StylesHeading styles are listed in the style menu from Heading 1 to Heading 6. You can define custom versions of each which appear below them in the style menu.
Image StylesImage styles are show as options when you right-click on an image and choose Image Properties
Table StylesYou can create new styles (or modify existing ones) for the various elements of tables (tr, td, etc). For example:
Other StylesYou can set the styles for elements of the HTML template, such as You can also customize the style of tags when they appear within a type of table cell, paragraph style, etc. For example:
or change the style of strikethrough, underline, italic and bold universally
Print FormattingDefine styles for printing in the section at the bottom:
TutorialOne of our developers, Ben posted this excellent tutorial to show you how these CSS elements work. |
|||||||||
|