Questions tagged [richtext]

Text that includes formatting commands for page layout such as fonts, bold, underline, italic, etc. It may also refer to a multimedia document that can include images, audio and video.

The Rich Text Format (often abbreviated RTF) is a proprietary document file format with published specification developed by Microsoft Corporation since 1987 for Microsoft products and for cross-platform document interchange.

Most word processors are able to read and write some versions of RTF.

632 questions
68
votes
6 answers

How to make item view render rich (html) text in Qt

Suppose my model has items with the following string for Qt::DisplayRole blah-blah some text other blah I want QTreeView (actually, any item view) to render it like a rich text. Instead, item views render it like a pure text by…
Anthony Serdyukov
  • 4,268
  • 4
  • 31
  • 37
57
votes
13 answers

Is it possible to copy code from Visual Studio and paste formatted code to OneNote?

Is there a way to copy code from visual studio (C#) and paste it into OneNote, without losing the formatting? I was able to do this, but only if I copy from VS, paste to Word, copy from Word, and then paste to OneNote.
MedicineMan
  • 15,008
  • 32
  • 101
  • 146
55
votes
2 answers

ValidateInput(false) vs AllowHtml

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,…
EricGS
  • 1,323
  • 2
  • 17
  • 42
51
votes
4 answers

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

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…
bastibe
  • 16,551
  • 28
  • 95
  • 126
39
votes
6 answers

How do I convert HTML to RTF (Rich Text) in .NET without paying for a component?

Is there a free third-party or .NET class that will convert HTML to RTF (for use in a rich-text enabled Windows Forms control)? The "free" requirement comes from the fact that I'm only working on a prototype and can just load the BrowserControl and…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
31
votes
1 answer

javascript Rich Text Editors

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…
idrosid
  • 7,983
  • 5
  • 44
  • 41
25
votes
3 answers

Is there something better than document.execCommand?

When implementing a web-based rich-text editor, I read that document.execCommand is useful for performing operations on an HTML document (like making a selection bold). However, I need something a bit better. Specifically, I need to know exactly…
Brent
  • 4,153
  • 4
  • 30
  • 63
24
votes
4 answers

How to add image in Quill JS?

I can't figure out how to get images to work like in the example on http://quilljs.com/. I tried adding to the toolbar, which adds the button, but clicking on the button does nothing and…
kidcapital
  • 5,064
  • 9
  • 46
  • 68
22
votes
2 answers

Unix Bash script to embolden/underline/italicize specific text

I've been trawling the web trying to find examples of Unix Bash script that can handle basic text styling (bold/underline/italics), but can't find anything? Is such a thing possible to do? For example: Embolden/Underline/Italicize all lines…
user536067
22
votes
4 answers

Paste without rich text formatting into EditText

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…
Erik
  • 834
  • 8
  • 17
20
votes
10 answers

Reset RTF formatting in a WinForms RichTextBox without discarding its text?

I'm trying to "reset" the formatting in my RichTextBox (WinForms, not WPF). I was previously using richTextBox.Text = richTextBox.Text; However, that seems to have suddenly failed me. Now no matter what I set richTextBox.Text to, it retains some…
NickAldwin
  • 11,584
  • 12
  • 52
  • 67
17
votes
2 answers

How to add bold and normal text in one line using drawString method in reportlab (python)

I am new to reportlab lib, I am learning it simultaneously working on a college project. I have created a desktop application in wxpython, which result in saving data in PDF. I want to add 2 lines in my pdf. Where line starts with a user input…
Omkar
  • 1,493
  • 3
  • 17
  • 36
16
votes
2 answers

Sitecore Rich Text Html Editor Profile - set global default

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…
misteraidan
  • 1,984
  • 4
  • 23
  • 31
11
votes
3 answers

Sending formatted Lotus Notes rich text email from Excel VBA

I have little Lotus Script or Notes/Domino knowledge but I have a procedure, copied from somewhere a long time ago, that allows me to email through Notes from VBA. I normally only use this for internal notifications where the formatting hasn't…
Lunatik
  • 3,838
  • 6
  • 37
  • 52
11
votes
3 answers

Can't delete image in contenteditable div on Android

I am building a rich text editor in android. To do so, I am using a webView with a contentEditable div. To add styles, I invoke JavaScript. This all works fine, except when I invoke JavaScript to insert either an image or a horizontal rule. When I…
user2658889
  • 111
  • 4
1
2 3
42 43