richtextbox

WPF RichTextBox and specific culture issues

Hi there, Im trying to set Language for System.Windows.Control.RichTextBox as "es-PE", but I found some issues, for example in some computers, works perfectly and SpellChecker is enabled with "es-PE" language, but in others it just works with "en-US", so I Dont know whats the matter with that control, I was using the following code in...

WYSIWYG rich text editor that supports diffs?

My web application is similar to StackOverflow in that different users frequently edit the same blob of text. Currently we only support plain text, and therefore it's easy to show users how the text has changed between edits. I want to support rich text in these fields, but my users are non-technical and therefore markup of any kind is...

Why are there self-duplicating curly brackets in persisted WPF RichTextBox?

Our tester threw curly brackets at our persisting WPF RichTextBoxes. On save and reopen, there are magically more curly brackets. I've condensed the issue / code down. <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title...

YUI Editor: How to paste as plain text?

I implemented the Yahoo Rich Text Editor (YUI Editor) in a Rails application using the YUI_Editor Plugin. If I copy/paste text out of a PDF into a YUI-Editor-enhanced-TextArea (YEETA :)) it does not only copy the text but also the formatting of it. How do I configure the YUI Editor to remove all formatting of text pasted into the YEETA...

YUI Editor: <p> instead <br> on linebreak?

Hi How do I tell the YUI-Editor to enclose all text into <p></p> and use <p></p> instead of <br> if the user issues a linebreak? Here comes an example to illustrate what I'm trying to do: Instead of this: The quick brown fox<br>jumps over the lazy dog I would like to have this: <p><p>The quick brown fox</p><p>jumps over the lazy d...

YUI Editor: How to use CSS to format content of editor window?

I've implemented the YUI Editor and would like to apply a CSS to change the look of the text the user is working on inside the rich text editor. I'm working with the yui_editor plugin for ruby on rails, but that doesn't mean that a generic answer wouldn't be welcome. It's even OK if you could just point me to the correct API section and...

YUI Editor: Getting rid of <html> tags in content.

I implemented the YUI rich text editor and I would like to get rid of the <html>, <body> and DOCTYPE tags as soon as I save the content from the editor. I know I could do this afterwards by parsing the HTML, but there must be a better solution. Right now this is saved when I edit a text in the YUI editor: <!DOCTYPE html PUBLIC "-//W3C/...

Prevent AutoScrolling in C# RichTextBox

I have a readonly data logging window that I implemented using the RichTextBox control. I'd like to be able to disable the autoscrolling that happens when the user clicks in the control so that the user can select a specific log for copy/paste operations or whatever. However, as soon as the user clicks in the RichTextBox, it automatica...

WYSIWYG editor for Windows forms

Does anyone know of a good WYSIWYG editor for Windows forms. If I use a rich textbox, I need to handle pasting events, bold buttons, fonts etc, which is a nightmare. I’m currently using the HTML control, suggested by many sites, but I have a large form, with many tabs. Since I have to load up to 8 HTML controls, loading the form takes t...

WPF RichTextBox - spell check does not work with formatted text

Hi, If I define a RichTextBox as follows; <RichTextBox SpellCheck.IsEnabled="True"> <FlowDocument /> </RichTextBox> When I type in the work 'Sample' and make the first three letters bold, the spell checker underlines the word. The source XAML of the document shows that the RichTextBox is splitting the word into two seperate runs...

[WPF] How to limit to max 83 Chars per single line in RichTextBox

Hi there, Im trying to make a recreation of MSWord using WPF RichTextBox and Toolbar, so one of the recently issues is the following: In MSWord document... ...with Font Family Times New Roman, 11, Justify a single line contains 95 Chars ...with Font Family Times New Roman, 11, Justify, Bold a single line contains 83 Chars about margin...

Determining the selected InlineUIContainer in a WPF RichTextBox

Hi, I'd like to determine if there is an InlineUIContainer (or BlockUIContainer) at the current Caret position in a WPF RichTextBox. Currently I have a RichTextBox as follows; <RichTextBox SelectionChanged="RichTextBox_SelectionChanged"> <FlowDocument> <Paragraph> <Run>Some text before</Run> ...

How to detect if a scrollbar is or is not at the end of a richtextbox (vb.net)

Hi, my question is as is:How to detect if a scrollbar is at or not at the end of a richtextbox? edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else. ...

why doesn't tamil language works in richtextbox for vb6 & how to workaround this?

hi guys, i have an editor like app in vb6, and i'm looking for a richedit which can support tamil input using win xp tamil ime input. it's weird but i can key in chinese, japanese, english, arabic, french using the richtextbox but somehow tamil will just appears as ?? when i key it in using the ime. however if i do a copy and paste from...

What is the best free or cheap ASP.NET control for HTML editing?

Duplicate http://stackoverflow.com/questions/308685/best-asp-net-wysiwyg http://stackoverflow.com/questions/590960/whats-the-best-wysiwyg-editor-when-using-the-asp-net-mvc-framework http://stackoverflow.com/questions/364642/how-to-make-a-wysiwyg-section-on-a-web-page http://stackoverflow.com/questions/65800/whats-the-best-html-...

Recommend an html textarea editor?

I'm looking for something with minimal functionality, such as what you see in gmail or even in stack overflow, but aimed at non developers, that is, no markdown syntax. Any pointers? ...

ContextMenuStrip on User control containing Richtextbox C#

I have made a custom control which consists of a richtextbox and a picture box. Now i want to include a contextmenustrip on the richtextbox actually. But the code which i want to call on click of the different menus on the menustrip belongs to the Main project in which i'l be adding this control. So i thought of adding the contextmenustr...

WPF Richtextbox FontFace/FontSize

Hello, I am currently trying to create some basic word processor features in a WPF project. I am using a RichTextBox and am aware of all of the EditingCommands (ToggleBold, ToggleItalic...ect.). The thing I am stuck on is allowing the user to change the fontsize and font face like in MS Office where the value changes for only the selecte...

Why does a Rich Edit control ignore character formatting on trailing whitespace?

I have a Unicode rich edit control v4 (based on MSFTEDIT.DLL). I'm using WTL, which I don't believe is interfering. The test OS is Vista x64. The application is 32-bit Unicode. All text is added programatically, and the control is read only. The user gets to pick the fonts used for inserted text, and those fonts can vary across the text...

Saving/Loading RichTextBox Content with other data using C#

Hello, I am currently trying to figure out how to save the content from a RichTextbox into a stream(currently using FileStream) and do this alongside a bunch of other data. Then of course I want to be able to load from this file. I was currently trying to use something along the following lines. FileStream stream = new FileStream(); //t...