richtext

Sitecore Rich Text Html Editor Profile - set global default

亡梦爱人 提交于 2019-11-30 08:23:54
OK I can't believe this can't be found anywhere so I'm asking the question. Is there a way to set the default Html Editor Profile in Sitecore so I don't have the override the Source field on each individual Rich Text field? e.g. I want to make this the default option for the Html editor: /sitecore/system/Settings/Html Editor Profiles/Rich Text Medium MattyC Its an old question but here is the solution I found in Sitecore 6.5 - I was looking to do the same thing in 6.5: You can change the value to the path of your default editor in the web.config. This will change is across all fields where the

How to create a bold, red text label in Qt?

£可爱£侵袭症+ 提交于 2019-11-30 05:40:27
I want to write a single, bold red line in my application using Qt. As far as I understand, I would create a QLabel, set its textFormat to rich text and give it a rich text string to display: QLabel *warning = new QLabel; warning->setTextFormat(Qt::RichText); warning->setText("{\\rtf1\\ansi\\ansicpg1252 {\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;} {\\colortbl;\\red255\\green0\\blue0;} \\f0 \\cf0 this is bold red text}"); I tested this rich text string in a rich text editor and it displays fine. But Qt displays the whole string with all braces, keywords and backslashes instead of "this is bold

How to send email in richtext format to Outlook?

吃可爱长大的小学妹 提交于 2019-11-30 05:38:50
问题 It works great to send emails (to Outlook) in HTML format by assigning the text/html content type string like so: using (MailMessage message = new MailMessage()) { message.From = new MailAddress("--@---.com"); message.ReplyTo = new MailAddress("--@---.com"); message.To.Add(new MailAddress("---@---.com")); message.Subject = "This subject"; message.Body = "This content is in plain text"; message.IsBodyHtml = false; string bodyHtml = "<p>This is the HTML <strong>content</strong>.</p>"; using

Android EditText : How to apply Foreground color span as you type?

南笙酒味 提交于 2019-11-30 04:51:22
问题 I'm trying to apply a font color to text in an EditText as you type text. However, its just very inconsistent, meaning that sometimes if you type a space, the text preceding that space will go back to the default black color. Or if I put my cursor in the middle of a word and start typing the entire word changes color and not just the text I'm typing. The bold, italic and underline seem to work well though. How can I guarantee that only the text I'm typing will be affected with regards to font

Sitecore Rich Text Html Editor Profile - set global default

我怕爱的太早我们不能终老 提交于 2019-11-29 16:57:24
问题 OK I can't believe this can't be found anywhere so I'm asking the question. Is there a way to set the default Html Editor Profile in Sitecore so I don't have the override the Source field on each individual Rich Text field? e.g. I want to make this the default option for the Html editor: /sitecore/system/Settings/Html Editor Profiles/Rich Text Medium 回答1: Its an old question but here is the solution I found in Sitecore 6.5 - I was looking to do the same thing in 6.5: You can change the value

WPF spell check languages

六眼飞鱼酱① 提交于 2019-11-29 11:30:37
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 can find no information on this. Can anyone confirm that still only those four languages are supported -

How to paste rich text into a UITextView?

帅比萌擦擦* 提交于 2019-11-29 08:24:44
My app allows users to format text in a UITextView by clicking some formatting buttons that apply attributes to the attributedText property of the text view. I want to allow users to copy their formatted text from one UITextView and paste it into another using the standard pasteboard and standard cut/copy/paste menu. Currently if I copy formatted text from a UITextView and paste it into a new message in the Mail app, the formatting is preserved -- so the copying of formatted text is happening automatically. But if I paste the formatted text into another UITextView in my app, only the plain

ValidateInput(false) vs AllowHtml

爱⌒轻易说出口 提交于 2019-11-28 04:19:14
I have a form that is used to create a memo, to do that I am using a rich text editor to provide some styling, this creates html tags in order to apply style. When I post that text, the mvc throws an error to prevent potentially dangerous scripts, so I have to specifically allow it. I have found 2 ways of doing this, one is to decorate the controller method with [ValidateInput(false)] and the other is to decorate the ViewModel attribute with [AllowHtml] . To me, [AllowHtml] looks much nicer, but I have only found that approach used 1 time and the [ValidateInput(false)] seems to be the

javascript Rich Text Editors

江枫思渺然 提交于 2019-11-28 03:16:10
There are several (very good) rich text web editors written in Javascript (eg FCKeditor, YUI Texteditor and many many others). However I couldn't find any tutorial on how to build such a component. Something that would explain both high-level considerations (architecture) and/or more details in low-level "critical" points (ie why do most of the editors out there use iFrame, how do you handle keyboard input like Ctrl-B, Ctrl-C when the text is selected and when it is not etc) My main motivation is curiosity; if I had to develop such an editor today I wouldn't know where to start from. Does

How to add a rich Textbox (HTML) to a table cell?

醉酒当歌 提交于 2019-11-27 16:15:36
I have a rich text box named:”DocumentContent” which I’m going to add its content to pdf using the below code: iTextSharp.text.Font font = FontFactory.GetFont(@"C:\Windows\Fonts\arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 12f, Font.NORMAL, BaseColor.BLACK); DocumentContent = System.Web.HttpUtility.HtmlDecode(DocumentContent); Chunk chunkContent = new Chunk(DocumentContent); chunkContent.Font = font; Phrase PhraseContent = new Phrase(chunkContent); PhraseContent.Font = font; PdfPTable table = new PdfPTable(2); table.WidthPercentage = 100; PdfPCell cell; cell = new PdfPCell(new Phrase