Sfairadora

  • Reference Guide

State Object of Rich Text Editor

Rich text editors publish a state object of the following type under the identifier editor_state.
Type
Name
Description
rich_cformat_info
Information about the character format of the character at which the cursor is located or of the marked portion of the text.
rich_pformat_info
Information about the paragraph format of the paragraph in which the cursor is located or of the marked portion of the text.
Rich_table_info optional
rich_table_info
Information about the table format of the table in which the cursor is located or of the marked portion of the table.
rich_picture_info
Information about the picture at which the cursor is located.
cursor position
(see below)
cursor_pos
The cursor position.
Atom const
language
The programming language that is being edited by the editor. Currently either none or "Enkidu". The value corresponds to the attribute language in the definition object of rich text editor.
Atom const
edited_data_id
The name of the object where the data item currently edited is located.
Dref const
edited_data_ref
The reference of the data item currently edited within the object specified above.

Cursor Position

Type
Name
Description
Dword
par
The paragraph number (numbered from 1).
Dword
char
The number of character within the paragraph (numbered from 1).