Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

Rich Text Control - Visible tags on .pasteRTF()

$
0
0

Getting the text from the database and pasting it to the Richt Text Control, I get some of the tags/formatting visible, which I don't see how to get rid of.

 

The text owidctlpar gets stored together with the text originally entered in the control.

 

rich_text_edit.png

 

1. Get data and paste in control

 

rte_control.setredraw(FALSE)

ls_input = lds_data.getitemstring(ids_data.getrow(), 'description')

rte_control.pasteRTF(ls_input, Detail!)

rte_control.setredraw(TRUE)

 

2. Get the text from control and store to database

 

rte_control.setredraw(FALSE)

ls_input = rte_control.copyRTF(FALSE, Detail!)

lds_data.setitem(lds_data.getrow(), 'description', ls_input)

rte_control.setredraw(TRUE)

 

Checking the string in the database, I can find the owidctlpar, which seems to be part of the header.

 

\headery720\footery720\pgwsxn11905\pghsxn16838\marglsxn0\margtsxn0\margrsxn0\margbsxn0\pard\itap0

owidctlpar

 

For everytime I save, I get a new owidctlpar part in the string.


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>