richtext

Making the RichTextField Horizontally Centered in Blackberry

淺唱寂寞╮ 提交于 2019-12-24 10:24:12
问题 My current Mainscreen looks like : The current code for each line of display is like: RichTextField WeFix1 = new RichTextField("• Computer & Laptop", RichTextField.TEXT_JUSTIFY_HCENTER); VFMTitle1 = new VerticalFieldManager(Field.USE_ALL_WIDTH| Field.NON_FOCUSABLE); HFMTitle1 = new HorizontalFieldManager(FIELD_HCENTER); HFMTitle1.add(WeFix1); VFMTitle1.add(HFMTitle1); add(VFMTitle21); But need to it be positioned in a straight line : 回答1: There are many possibilities. You can adjust the

Sitecore Rich Text links not user friendly when rendered through Glass

為{幸葍}努か 提交于 2019-12-24 07:16:57
问题 I have a component that includes a single Rich Text field. In the sublayout, the field is rendered as an Html.Editable with Glass so that it can be edited on the page in PageEditor. It looks like this: public override void Initialize() { litBodyContent.Text = Html.Editable(GlassItem, item => item.Body); } <div style="min-height: 38px"> <asp:Literal runat="server" ID="litBodyContent" /> </div> However, when I insert links using the Rich Text editor, when the page is rendered (in normal view

How to convert RichText (RTF) document with images into HTML in Delphi?

穿精又带淫゛_ 提交于 2019-12-21 21:08:20
问题 I have been trying to find a free (preferably open sourced) component or library which will allow to convert a RTF file with embedded images into HTML file and image files or better HTML and image streams. The perfect solution, regardless if it is a DLL library or Delphi component, would allow to stream data to IStream/TStream using callbacks, so I will be able to convert and save images into a format of choice returning image file relative name for RTF parser to include in generated HTML

Sitecore: Forcing pasting as unformatted text

一个人想着一个人 提交于 2019-12-19 04:15:23
问题 Is there a good way to force pasting as text inside Rich Text Fields inside Sitecore? I know there's a "Paste as Text" button in the Rich Text Editor itself, but content authors are almost definitely going to just hit Ctrl+V or Right-Click->Paste to put the text in, and if that content came from Word, all hell breaks loose with the markup. The workaround we have so far is to paste into notepad and then to copy that text and paste it into the Rich Text Field, but that solution is inelegant and

WPF spell check languages

好久不见. 提交于 2019-12-18 07:03:31
问题 I'm trying to enable spell checking on a RichTextBox in a small WPF application. Most of the documents for the application are in danish. I would prefer to use natively WPF spell checking like <RichTextBox Name="rtb" SpellCheck.IsEnabled="True" xml:lang="da"></RichTextBox> I've googled most of the web (or so it seems) - and I can only find old posts from 2009/2010 saying only english, german, french and spanish are supported. My thought was more languages ought to be supported by now - but

Paste without rich text formatting into EditText

蓝咒 提交于 2019-12-18 04:36:18
问题 If I copy/paste text from Chrome for Android into my EditText view it gets messed up, apparently due to rich text formatting. Is there a way to tell the EditText view to ignore rich text formatting? Or can I catch the paste event and remove it before it gets set? How would I do that? UPDATE: So I realized that the editText.getText() gives me a SpannableString that contains some formatting. I can get rid of that by calling .clearSpans(); on it. BUT I cannot do anything like that in editText

How to add html stored in a richtext item to an HTMLMail in Xpages

萝らか妹 提交于 2019-12-14 00:27:55
问题 I need to add html to an email so I use Mark Leusink HTMLMail SSJS function. The html I have is in a richtext field and it looks like this. "Content-Type: text/html; charset="utf-8" <p dir="ltr"> Test1</p> <p dir="ltr"> Test12</p> <p dir="ltr"> Test3</p> <p dir="ltr"> Test4</p> <p dir="ltr">  </p>" The content of the rt field is filled using the standard RT Editor in xpages I have tried these method to add the rt to the email. "mail" is the html function and "rt" is the richtextitem where the

Add source button to Magnolia CMS richText control

我怕爱的太早我们不能终老 提交于 2019-12-13 06:37:52
问题 I need to enable source button on my richText control ( I have to put there HTML code ) and I have follow this tutorial: https://documentation.magnolia-cms.com/display/DOCS/Rich+text So I have added following settings source - true - Boolean in standard-templating-kit/dialogs/generic/controls/text but it doesn't work for me. I'm using Magnolia CMS 5.2.4. Can anybody please tell me how I can turn on this button or maybe if there is another control to put there html code ? Best Regards Jan 回答1:

Concatenate Rich Text Fields (HTML) and display result on Access form

断了今生、忘了曾经 提交于 2019-12-12 17:46:45
问题 I have an access database which deals with "articles" and "items" which are all textual stuff. An article is composed of several items. Each item has a rich text field and I wish to display the textual content of an article by concatenating all rich text fields of its items. I have written a VBA program which concatenates the items rich text fields and feeds this into an independent TextBox control on my form (Textbox.Text = resulting string) but it does not work, I get an error message

Does TRichEdit support Unicode?

我只是一个虾纸丫 提交于 2019-12-12 10:03:27
问题 I'm trying to write a wrapper class around TRichEdit that can encode and decode RTF to/from plaintext. This is what I've written so far: type TRTF = class private FRichEdit : TRichEdit; procedure SetText(const AText: string); function GetText: string; class function Convert(const AInput: string; AEncode: Boolean): string; inline; static; public constructor Create; destructor Destroy; override; class function Decode(const AInput: string): string; static; class function Encode(const AInput: