Rich Text Editor: Conversion from ASPX to HTML and TypeScript
The information in the following tables will help you to convert the ASPX elements that are related to a rich text editor to HTML or TypeScript elements.
AutoSize
The following table shows the correspondence between the AutoSize element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
| ASPX | HTML or TypeScript |
|---|---|
AutoSize |
Use the properties in the config attribute of the
qp-rich-text-editor
control. |
Enabled |
Use the expandToContent property in the
config attribute of the qp-rich-text-editor
control. |
MinHeight |
Use the expandToContentMinHeight property in the
config attribute of the qp-rich-text-editor
control. |
InsertDatafield
The following table shows the correspondence between the InsertDatafield element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
| ASPX | HTML or TypeScript |
|---|---|
InsertDatafield |
Add the insert-data-field tag between the opening and
closing qp-rich-text-editor tag in
HTML. |
DataMember |
Use the data-member attribute of the
insert-data-field tag in HTML. This attribute specifies the
data view whose fields should be displayed when the Data
Field command is clicked on the toolbar of the
qp-rich-text-editor
control. |
DataSourceID |
Use the id-field attribute of the
insert-data-field tag in HTML. This attribute specifies the
unique identifier field that belongs to the data view specified in the
datamember
attribute. |
TextField |
Use the text-field attribute of the
insert-data-field tag in
HTML. |
ValueField |
Use the value-field attribute of the
insert-data-field tag in
HTML. |
ImageField |
Use the icon-field attribute of the
insert-data-field tag in
HTML. |
InsertDatafieldPrev
The following table shows the correspondence between the InsertDatafieldPrev element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
| ASPX | HTML or TypeScript |
|---|---|
InsertDatafieldPrev |
Add the insert-data-field-prev tag between the opening and
closing qp-rich-text-editor tag in
HTML. |
DataMember |
Use the data-member attribute of the
insert-data-field-prev tag in HTML. This attribute specifies
the data view whose fields should be displayed when the Previous Data
Fieldcommand is clicked on the toolbar of the
qp-rich-text-editor
control. |
DataSourceID |
Use the id-field attribute of the
insert-data-field-prev tag in HTML. This attribute specifies
the unique identifier field that belongs to the data view specified in the
data-member
attribute. |
TextField |
Use the text-field attribute of the
insert-data-field-prev tag in
HTML. |
ValueField |
Use the value-field attribute of the
insert-data-field-prev tag in
HTML. |
ImageField |
Use the icon-field attribute of the
insert-data-field-prev tag in
HTML. |
PXRichTextEdit
The following table shows the correspondence between the PXRichTextEdit element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
| ASPX | HTML or TypeScript |
|---|---|
PXRichTextEdit |
Use the qp-rich-text-editor tag in
HTML. |
ID |
Use the id attribute of the
qp-rich-text-editor tag in
HTML. |
DataField |
Use the state attribute of the
qp-rich-text-editor tag in
HTML. |
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to rich text editors. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
| ASPX Control | Properties |
|---|---|
| PXRichTextEdit |
|
