Hi,
When I insert a mergefield the mergefield has font=Arial + fontsize=655, regardless of the current font+size under the cursor.
Is there a way to make sure the mergefield get the currently active font+size (where the cursor currently is placed in the document)?
Code
WPRichText.InputMergeField(lbVeldenLijst.Items[lbVeldenLijst.ItemIndex], lbVeldenLijst.Items[lbVeldenLijst.ItemIndex]);
In OnShow-event of the form:
Code
WPLocalizeLoadForms := TRUE;
WPTools_LoadVCLStrings;
WPTools_LoadActionStrings;
mbLettertype.Items := Screen.Fonts;
WPRichText.DefaultAttr.Clear;
WPRichText.DefaultAttr.SetFontName('Arial');
WPRichText.DefaultAttr.SetFontSize(10);
WPRichText.WritingAttr.Clear;
WPRichText.WriteObjectMode := wobRTF;