A template editor is the component that lets administrators define document templates for Sales Quote
Managementand embed dynamic quote data through styled inline tokens.
Table 1. Core Concepts
| Concept |
Definition |
| Merge Field |
A placeholder that represents a specific attribute of a quote, selling entity,
or related CRM record (for example, quote name, customer email). |
| Template |
An HTML‑based document skeleton that contains text and merge fields. This
template is used as the source for all generated quote documents. |
| Visual token |
The rendered representation of a merge field inside the
editor – a highlighted chip that displays the field label and behaves as an atomic
unit. |
| Validation engine |
The logic that checks a template for the presence of mandatory merge
fields. |
| Quoted Items Table |
A merge field is replaced at generation time by the full Quoted Items table.
|
Table 2. Merge Fields Insertion Mechanisms
| Method |
How it Works |
| Category‑grouped list |
A searchable list groups the 47+ fields into five categories (quote,
selling entity, CRM account, CRM contact, CRM account address). Selecting a field
inserts it at the cursor position. |
| Inline {{ autocomplete |
Entering the characters {{ opens a filtered list that
updates as you continue entering (case‑insensitive). Arrow keys navigate; Enter
confirms the selection. |
Note:
Both methods produce identical tokens regardless of how the field is added.
Visual Field Tokens
- Rendered with a distinct background and label, making them easy to identify among static
text.
- Treated as atomic entities – selecting the token selects the whole field, and deletion
removes it entirely.
- Remain immutable; editing occurs only by replacing the whole token through the insertion
mechanisms.
Table 3. Mandatory Merge Fields and Validation
| Mandatory Field |
Description |
{{Quote Name}}
|
Required to identify the quote in every generated document. |
{{Quoted Items Table}} |
Generates the item‑by‑item breakdown that is essential for pricing and legal
compliance. |
{{Validity Period}} |
Set a maximum quote validity per location, channel, and market and display that
period in quote documents and on each quote. |
When an administrator attempts to save a template, the validation engine scans the content.
If either mandatory field is absent, an error message is displayed and the save operation is
blocked. This safeguard prevents accidental removal of critical data.
Table 4. Configuration Requirements
| Item |
Description |
| Merge Fields data set |
Provided by the mergeFields configuration property; includes
field name, label, and category for each of the 47+ entries. |
| Plugin activation |
Enabling the CKEditor5 merge Fields premium plugin and the template plugin is
the only implementation effort required. |
| Category structure |
Five logical groups (quote, selling entity, CRM account, CRM contact,
CRM account address) that drive the list organization and search filtering. |
Quote Template Document Properties
Sales admin can define which quoted item information appears in the document table and how
the document page is formatted. The dialogue is organized into two sections:
- Table Layout: Configures the quoted items table (columns,
styling, totals).
- Page Setup: Configures document level properties (paper size,
orientation, margins)
Capabilities:
- Sales admin can enable/disable the optional columns: Configuration, description,
Quantity, identification Number.
- Sales admin can reorder columns (within the allowed positions).
- Sales admin can select a column and specify its width, font size, and text/header
colors.
- Sales admin can specify the table accent color and header style.
- Sales admin can specify the row density.
- Sales admin can enable/disable the alternate-row color and pick its color.
- Sales admin can specify the global text color and header text color.
- Sales admin can select a border preset and specify its thickness and color.
- Sales admin can enable/disable the Total, discount total and subtotal rows.
- Sales admin can distinguish ad hoc quoted items in generated quote document.