Rich Text Editor

Prev Next

It is possible for the admin user to enable Rich Text Editor in the field definition settings of the Text Box fields.

image151.png

When enabled, the Rich Text Editor control panel is displayed when editing the field in Add/Edit item window, so users can apply styling to the text according to their needs. After saving, formatted text is shown in all places where the field with rich text is displayed (including dashboard widgets).

image152.png

image154.png

Formatting tools of the text editor are listed below:

Icon

Name

Description

image156.png

Source

Switch to plain HTML view, where you can directly edit the markup

image158.png

Bold

Applies bold format to selected text

image160.png

Italic

Applies italic format to selected text

image162.png

Underline

Applies underline format to selected text

image164.png

Strikethrough

Applies strikethrough format to selected text

image166.png

Subscript

Make text Subscript

image168.png

Superscript

Make text Superscript

image170.png

Remove Format

Removes the custom formatting applied to the selected text. Can be useful if you paste already formatted text from the web-page or Word document and want to restyle it

image172.png

Block Quote

Appy special styling that allows highlighting the text block as quotation

image174.png

Align Left, Center, Right, Justify

Align the paragraph according to the selected method

image176.png

Text direction

Normally used direction from left to right. When selecting the opposite direction, the typed text will appear to the left of the cursor

image178.png

Insert/Remove Numbered List

  1. one

  2. two

  3. three

image180.png

Insert/Remove Bulleted List

  • sweet

  • sore

  • bitter

image184.png

Increase Indent

      Text with indent

image182.png

Decrease Indent

Text without indent

image186.png

Link

Adds a hyperlink to an external resource. In the opened "Link"-window you can choose a link type (URL or Email) and define how it should be opened (same window, popup etc.)

image188.png

Unlink

Removes a hyperlink from the text

image190.png

Image

Allows inserting an image by specifying the link to it. You can use a link to the item’s preview image from Module.

In opened "Image Properties"-window you can either adjust the picture size, alignment, and text wrapping, border, indents etc.

image192.png

Insert Horizontal Line

Does exactly what it is supposed to:)

image194.png

Insert Special Characters

Allows to select from various additional symbols that cannot be directly entered from the keyboard

image196.png

Formatting Styles

Three predefined Header styles are available + one Normal text style

image198.png

Text Color

Allows to chose the color of highlighted text via the colorpicker

image200.png

Background Color

Allows to chose the color of highlighted text background via the colorpicker

001_Table_icon.PNG

Insert Table

Alows to insert a table with custom number of columns and rows (from 1x1 to 10x10)

003-1_ColumnsTools.png

Column

Tools for the actions with columns:

  • The Header column toggle,

  • Insert column left/right,

  • Delete column,

  • Select column

003-2_RowTools.png

Row

Tools for the actions with rows:

  • The Header row toggle,

  • Insert row above/below,

  • Delete row,

  • Select row

003-3_MergeCells.png

Merge Cells

  • Merge cell up/down,

  • Merge cell right/left,

  • Split cell vertically/horizontally

003-4_TableProperties.png

Table Properties

Allows to apply formatting to the table:

  • Border style/color/width,

  • Background color,

  • Dimensions,

  • Alignment

003-5_CellProperties.png

Cell Properties

Allows to apply formatting to the selected cells:

  • Border style/color/width,

  • Background color,

  • Dimensions,

  • Padding,

  • Table cell text alignment

002_SelectAll_icon.PNG

 Select All

 Allows to select all the content inside the editor (the same as the 'Ctrl+A' combination does)

Note! If you simply copy and paste text into the editor window, its main formatting will be perfectly kept, including the hyperlinks, bullets, style and even images. 

Rich Text Editor is not available for users without “Edit in Edit” access to the field (“Edit in Edit Custom” in Briefing), though they will see the read-only text with formatting applied.

On exporting the Rich text field content to the external file (using actions):

  • HTML tags are escaped and substituted with entities (e.g. ") for XML and CSV formats.

  • HTML tags are not escaped for HTML and TXT formats.

  • For XSLT based printing the escaping of tags is controlled by the XSLT template using the disable-output-escaping setting.

  • Other fields without Rich text are exported in the normal way, with special characters escaped no matter the output format.

Custom CSS files for additional styling must be placed in the following directory:

  • On production: {ApplicationDir}/css/custom/common

  • On test server: {ApplicationDir}/webapp/src/main/webapp/css/custom/common

It is possible to have several CSS files. After that custom styles will appear in the Style dropdown list of the Rich Text Editor and can be applied.

In order to have styles applied in exported PDF or HTML they must be linked in the  section of the template used for exporting. For example:

<!— Link basic styles included into the delivering package —>
<link rel="stylesheet" href="https://qa.test.com/qa/css/rte.css" type="text/css"/>

<!— Link custom styles configured by the system admin —>
<link rel="stylesheet" href="https://qa.test.com/qa/css/custom/common/test.css" type="text/css“/>

Limitations for field with “Rich Text Editor” enabled

  • Searching by field with Rich text is not fully functional since there are underlying HTML tags which are respected by search engine but not visible by user.

  • Sorting is not available.

  • HTML tags are escaped in AdBuilder printed PDF (also including AdBuilder based Legacy Print).

  • Text Truncation functionality is not available (because of the risks of truncating the tags that will break the layout).

  • Automatic Field Content (autofilling) is not available.

  • If styles with identical names are present in custom CSS files, only the first style found is respected.

  • For the existing field which already contains the text with line breaks, the line brakes will not be rendered in the field due to HTML peculiarities. However line brakes will still be kept in DB until the field is re-saved, On re-saving, the field the line breaks will be lost.