Available for the following (sub-)scopes:
Attributes:
Value | Icon in the Rich Text Editor | Description |
---|---|---|
SUB_SUP | ![]() | Allows subscript and superscript. |
INDENTS | ![]() | Allows the ability to indent text. |
LISTS | ![]() | Allows inserting lists and list formatting. |
TABLES | ![]() | Allows inserting tables. |
INSERT | Allows inserting text elements; for finer control you can use INSERT_EMOTICON, INSERT_CHAR and INSERT_IMAGE | |
INSERT_EMOTION | ![]() | Allows inserting emoticons. |
INSERT_CHAR | ![]() | Allows inserting special characters. |
INSERT_IMAGE | ![]() | Allows inserting images. |
In case the ConSol CM system is used in an environment with different customer groups and each customer group has different requirements concerning the default font in the Rich Text Editor (RTE), this requirement can be met using a configuration script for the page customization type cmRichTextEditor, scope ticketEditPage/acimSection.
In the script, the customer group has to be retrieved. Depending on the group, a default font is set.
The page customization is set as shown in the next figure.
Figure 146: Setting a configuration script for ticketEditPage/acimSection to configure the default font size in the RTE
The script has the following code.
log.info 'Adapting font size to customer group ...'
ticket = ticketService.getById(ticketId);
def mainContact = ticket.mainContact
def cgName = mainContact.customerGroup.name
switch(cgName) {
case "DirectCustomers": [fontSizeValue:"14pt"];
break;
case "MyCustomerGroup": [fontSizeValue:"13pt"];
break;
case "OurPartnerCompanies": [fontSizeValue:"14pt"];
break;
case "Reseller": [fontSizeValue:"12pt"];
break;
case "RetailCompanies": [fontSizeValue:"10pt"];
break;
case "RetailCustomers": [fontSizeValue:"10pt"];
break;
default: [fontSizeValue:"8pt"];
break;
}
Code example 2: Script used in page customization to set the default font for the Rich Text Editor depending on the customer group of the ticket's main contact
For a ticket of a Reseller customer the RTE is opened with the default font of 12 as shown in the following figure.
Figure 147: Rich Text Editor of a ticket of a customer in customer group Reseller: default font set with script to size 12