rich-text

C# WinForms Rich Editor with Right-to-Left Unicode Support

Are there any rich editors for WinForms that support right-to-left and can export to HTML? The standard RichTextBox cannot export to HTML (Is there an RTF to HTML converter?) DevExpress's XtraRichEdit doesn't support right-to-left. ...

overlay a jpeg image with rich text using cute editor and GDI+

I am attempting to create and store a jpeg image on the fly with dynamic rich text. The rich text is comes from user input into the cute editor for asp.net. This particular editor can output either xHTML or rtf and some others. I'm using GDI+ to open a default background jpeg and overlaying it with the rich text from cute. I haven't ...

Handling Rich Text in an MVC application

What are the best practices regarding working with rich text in a web application? I don't want to leave myself vulnerable to script attacks. Should the data be encoded going into the database and then decoded when displayed back to the user? Any advice on rich text editor's that handle things like removing script tags or encoding the...

How best to sanitize rich html with rails?

Hi there, I'm looking for advice on how to clean submitted html in a web app so it can be redisplayed in future with out styles or unclosed tags wrecking the layout of an app. On my app rich HTML is submitted by users with YUI Rich text editor, which by default runs a few regexps to clean the input, and I'm also calling the [filter_M...

Reset RTF in RichTextBox?

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 of the rtf formatting. I've tried richTextBox.Rtf = richTextBox.Text; However, that...

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 QLabel; warning->setTextFormat(Qt::RichText); warning->setText("{\\rtf1\\ansi\\ansicpg1252 {\\fonttbl\\f0\\fswiss\\fcharset...

Extending TinyMCE to show a list of possible Internal pages which the user may wish to link to

Is it possible to extend the TinyMCE rich text editor to allow the insertion of Internal Links to my web sites pages. I already have a function which can return the list of page names and URLs however I cannot figure out how to add a new button to the Advanced Link plugin. I have worked with the Image Manager and Document manager plugi...

What frontend editor for Rails?

Hello everybody! At the moment I am building my new Website. On my Website, users are allowed to post some code (Java, Rails, Ruby, HTML, CSS,...). Now I want to format that code in frontend like on Stackoverflow. Is there a plugin I can use in Rails? I had a look on some rich text editors, but most of them did not do what I wanted them ...

How do Rich Text Editors in HTML documents achieve their rich text formatting?

Could you please explain how the text in the textarea gets styled in rich-text editors? I've tried to style text in the form but it doesn't change. Is it JS that recognizes characters typed by the user? How's that done? Edit: After a bit of research (Google rules!), I've found some excellent information. For others who might be inte...

mini Rich Text editor

ok, so i made a mini Rich text editor and if i want to insert a link i insert into the textarea the html like this: <a href=http://google.com&gt;go to google</a>, it works just fine but when i reopen that text for editing i don't get the complete html tag...all i get is go to google without <a href=http://google.com&amp;gt; and </a>. i h...

Lotus Notes rich text field to RTF File - VB

Here is my problem, I am doing a data migration from Lotus notes to another type of software that does not support Rich Text Fields. I am trying to write a VB 2005 program that will take any rich text fields that are found and place them into an RTF file - which will be uploaded as an attachment in the new software. I cannot get the p...

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

Suppose my model has items with the following string for Qt::DisplayRole <span>blah-blah <b>some text</b> other blah</span> I want QTreeView (actually, any item view) to render it like a rich text. Instead, item views render it like a pure text by default. How to achieve the desired rendering? Actually, this is a search results mod...

What criteria should I take into consideration when allowing users to enter rich text on my website?

I've worked with several different types of "user-generated content" sites: wikis, a message board, blogs... These systems can differ greatly: a blog post editor allows more control over presentation than that for comments on the blog post, a wiki topic editor encourages wiki links over raw URLs, etc. However, one key design decision i...

contentEditable cursor position/style in FireFox

I'm having trouble using contentEditable in FireFox 3. I have a problem where the cursor will appear above or only partially in the div after I click in it (until I start typing at which time it behaves correctly). Any ideas on how I can stop this from happening? HTML: <html> <head><title>Test Page</title></head> <body> <div...

How to send email in richtext format to Outlook?

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("[email protected]"); message.ReplyTo = new MailAddress("[email protected]"); message.To.Add(new MailAddress("[email protected]")); message.Subject = "This...

Can i execute custom commands in a rich text editor (iframe with design mode on) ?

See this. Is it possible to create custom commands (and how) for the function execCommands? I need custom commands for custom markup. ...

Qt - How to use rich text in a QComboBox?

I am trying to use rich text in a QComboBox but it does not support it. Perhaps I should write a subclass? But I am unsure on what I would need to override as I have never done anything like this before. Please help. Thanks! ...

Edit and render RichText

We have an application (a custom network management tool for building automation) that supports printing labels that you can cut out and insert into the devices' front displays. In earlier versions of the tool (not developed in my company), the application just pushed the strings into an Excel file that the field technician could then ma...

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 the default option for the Html editor: /sitecore/system/Settings/Html Editor Profiles/...

Does the Flex rich text control have any practical value?

Since the control emits bizzare non-standard HTML, I'm wondering if it has any practical value. The control emits font tags! How are others dealing with it? Do you do some sort of RegEx replace on the text? Or am I missing something? ...