|
|
Typing HTML tags directly into a rich content field from the GUI or Web interface does not apply formatting. For example, typing <b>text</b> will display exactly as <b>text</b> when saved.
|
|
|
To use rich content from a Web page, paste the Web page content in Microsoft Word. Copy this source content from Microsoft Word and paste it in the rich content field. This ensures that the formatted text and images are preserved in the rich content fields when using the PTC RV&S client GUI.
|
|
Element
|
Attributes
|
|---|---|
|
<!-- MKS HTML -->
|
Mandatory element that prefaces all elements in a rich content field. Other comments are removed.
When creating or editing an item via the GUI or Web interface, the system automatically adds the required <!-- MKS HTML --> tag to the field value if it is not already present.
However, when using the CLI for adding or editing data in rich content fields, it is highly recommended to use the --richContentField option to prefix this tag to the rich content data.
If the --richContentField option is not used in the CLI when creating or editing rich content fields, the tag is not prefixed to the data. This may prevent the system from recognizing the field as a rich content field, potentially impacting functionalities such as filtering, checking editability on such fields, and other related use cases.
|
|
<h1> to <h6>
|
align
|
|
<p>
|
style, align
|
|
<br>
|
The <br> tag is converted to its closing format <br/>.
|
|
<hr>
|
size, width
The <hr> tag is converted to its closing format <hr/>.
|
|
<ol>, <ul>, <li>
|
style
|
|
<img
|
src, border, alt, align, hspace, vspace, height, width, style
The <img> tag is converted to its closing format <img/>.
|
|
<a>
|
href, title, onclick
For item links, href is:
mks:///item?itemid=<itemID>
where <itemID> is the ID of the item you want to link to.
For attachment links, href is:
mks:///item/field?fieldid=<AttachmentField>&attachmentname=<attachment>
where <AttachmentField> is the name of the attachment field containing the attachment and <attachment> is the name of the attachment you want to link to.
|
|
<span>
|
style
|
|
<sub>
|
|
|
<sup>
|
|
|
<font>
|
style, color
|
|
<div>
|
style, align
|
|
<blockquote>
|
|
|
<strong>
|
Converted to <b>.
|
|
<b>
|
|
|
<i>
|
|
|
<code>
|
|
|
<em>
|
Converted to <i>.
|
|
<strike>
|
|
|
<del>
|
Converted to <strike>.
|
|
<pre>
|
|
|
<table>
|
style, align, border, width, cellpadding, cellspacing, summary, frame, rules, bgcolor, background
|
|
<tbody>
|
|
|
<tr>
|
style
|
|
<td>
|
style, rowspace, align, height, width, bgcolor, valign, background
|
|
<caption>
|
|
|
For any elements that deal with size units, the attributes can only be specified as values in pixels or points. Values in inches cannot be specified.
|