How do I add options to the wiki editor for fonts, sizes and styles via a template?
The 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.
Each 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:
Fonts 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.
Sizes 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.
These show up in the menu under the Body entry in the style menu.
Code Blocks & Quotes
There 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 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 styles are show as options when you right-click on an image and choose Image Properties
You can create new styles (or modify existing ones) for the various elements of tables (tr, td, etc). For example:
You 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
Define styles for printing in the section at the bottom: