Page 1 of 1

WYSIWYG DbRichViewEditor

Posted: Sat May 14, 2016 4:20 am
by mboloz
Hello There Newbie here,

How to Get WYSIWYG RichViewEditor when copy - paste Doc
I Try on your compiled demo work perfectly, but wont work on my own apps?? Like Font Style Font Size color and etc

Thanks

Image

Posted: Sat May 14, 2016 6:24 am
by Sergey Tkachenko
In your application, existing collections of TextStyles and ParaStyles are used when inserting RTF (RTF character and paragraph attributes are mapped to the most similar existing styles).

Right click TDBRichViewEdit at design time, choose "Settings" in the popup menu, select "Allow adding styles dynamically". Actually, this option must be default for new components created at design time. If not, check "Default" before clicking OK.

For components created in code, assign

Code: Select all

dbrve.RTFReadProperties.TextStyleMode := rvrsAddIfNeeded;
dbrve.RTFReadProperties.ParaStyleMode := rvrsAddIfNeeded;

Posted: Sat May 14, 2016 8:35 am
by mboloz
:D Thanks its work now