Referesh issue in the RTE Component

Certified Senior Developer

Hi All,

There is a requirement to have a RTE component where it is working properly in the interface, But when I open that from the site. RTE Component is refreshing with the key press with the below code.

Can someone suggest a way why it is refreshing with key press in the RTE component?

a!localVariables(
local!data: a!refreshVariable(
value: a!forEach(
items: ri!Data,
expression: if(
search("<html>",fv!item,1)=0,
null,
fv!item) ),
refreshOnReferencedVarChange: false()
),
local!emailData:
a!refreshVariable(
value: reject(fn!isnull(_),index(ri!qmcData,wherecontains(null,local!data),{})),
refreshOnReferencedVarChange: false()
),
local!linksData: a!refreshVariable(
value:tostring(reject(fn!isnull(_),local!data) ),
refreshOnReferencedVarChange: false()
),
{
richTextEditorField(
label: "Query Management Links",
richTextValue:local!linksData,
richTextSaveInto: {
local!linksData,
a!save(ri!Data,append(local!emailData,local!linksData)),
a!save(
ri!segment,
a!forEach(
items: ri!segment,
expression: 
a!update(
fv!item,
"sgmntText",
concat(
"<!DOCTYPE html><html><head></head><body><ul>",
a!forEach(
items: ri!qmcData,
expression: concat("<li>", fv!item, "</li> ")
),
"</ul></body></html>"
)



)
)
}
)
}
)

Thanks in Advance!

  Discussion posts and replies are publicly visible