The Editor and How HTML is Displayed

Introduction

AutoKB features a built in editor that will assist you when you create your articles and glossary words. It has several built in functions that will allow you to quickly insert HTML formatting tags. This document gives an overview of how the built in editor works and how HTML is handled in articles, comments, and glossary words.

The Editor

Below is an example of how the editor will appear when you add or edit a glossary word or article.


Near the top of the editor you will find several icons that will assist you with automatically inserting HTML code into your article or glossary word. Each of those icons is explained below. How HTML is Displayed

Before we discuss how HTML is displayed it is important to note that AutoKB will automatically convert newline characters (\r, \n, and \r\n) into a <br> tag so that when the article, definition, or comment is displayed it will be formatted how you have it in the text editor. For example, if you have an article that looks like this:
When AutoKB displays this article as part of your knowledge base, it will automatically add the necessary <br> tags to the article so that it looks the same way as it did when you edited it through the control panel. This is how it will be modified by AutoKB before it is displayed in the knowledge base:
As you can see, each of the newline characters has been converted to a <br> tag. These tags will not be visible, but instead they will be rendered by the browser so that the article looks the same as it did in the text editor. Therefore, it is not necessary to enter your own <br> tags in the article for formatting purposes, you can let AutoKB take care of that for you.

And now on to the information on how HTML code is handled. In each of the major 3 types of items that will be displayed - articles, glossary word definitions, and user comments - HTML is handled in a different way. This section will describe how HTML is handled in each of these three types of items.