How can remove css and override style of table inside text on RPE
Hello All,
Currently I facing one issue when generate modules from DNG on RPE.
When RPE get value of artifact from richTextBody
The issue are below:
- The content of richTextBody contain table and inside that table has border (border-color: rgb(105, 105, 105);)of table and cell inside it are different type, the template generate data with error message cannot
CRRPE3156E The color from 105, is not valid.
For input string: "105,"
CRRPE3156E The color from 105) is not valid.
For input string: "105)"
- The richtexbox contain htlm format and inside that format style of html contain style not created by RPE, then RPE through error message such as below:
CRRPE3156E The color from currentColor is not valid.
For input string: "currentColor"
So I have a question is do we have any way for override all style or reject all style on HTML input?
Thank you all,
Regards
TinhVo
One answer
I assume you have already tried setting "Data formatting" property as Template.
Can you attach the XML data returned for the text artifact containing the table? Please try https://server:port/rm/publish/text?resourceURI=uuid and save the data as XML.
Comments
Hello,
I send you the content of table I got it when I debug on RPE to fetch data from richtexbox and put it in text element.
I tried to insert all but I cannot, I give you short content below
<table border="1" cellpadding="1" cellspacing="1" dir="ltr" id="_1556259983193" style="width: 668px; table-layout: fixed; overflow-wrap: break-word; border-collapse: collapse; border-color: rgb(105, 105, 105);">
<tr>
<td colspan="1" id="_1556259983194" rowspan="1" style="border-color:#696969; overflow:hidden; padding:1px; width:166px">
<b>Document</b>
</td>.....
<tr>
<td colspan="1" id="_1556259983194" rowspan="1" style="border-color:#696969; overflow:hidden; padding:1px; width:166px">
<b>Document</b>
</td>.....
Regards
Tinh
That should work. I dont see any issue when the following XHTML is used as data:
'<table border="1" cellpadding="1" cellspacing="1" dir="ltr" id="_1556259983193" style="width: 668px; table-layout: fixed; overflow-wrap: break-word; border-collapse: collapse; border-color: rgb(105, 105, 105);"><tr><td colspan="1" id="_1556259983194" rowspan="1" style="border-color:#696969; overflow:hidden; padding:1px; width:166px"><b>Document</b></td></tr></table>'
I suggest you to open a case with support.