Skip to main content

Microsoft Silverlight

Answered Question Rich text editor is there...RSS Feed

(1)

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Rich text editor is there...

Hello,

 

Silverlight 2 Beta 2 is now supported... Big Smile

you will find this component on http://www.codeplex.com/richtextedit

and a working live demo on: http://michaelsync.net/2008/05/04/silverlight-rich-text-editor-demo 

Preview 

"
 This is the first rich text editor for silverlight and supports various well known features. This is all font formatting silverlight does support, including SUB/SUP formatting, homogenous underlining of multi-font-selections, blockquotes, unordered lists, block alignment, insertion of custom framework elements, secure content serialization, find&replace with regular expressions, clipboard support for formatted text, integrated scroll viewer, custom design, macros and many more.
It ships with a preliminary documentation, an extensive demo and is still in beta state. I plan the first release candidate for silverlight beta 2.

This is an incomplete feature list:

  • Copy/Paste formatted text between RichTextBoxes and copy/paste from/to clipboard of unformatted but macro-enabled text. This means in windows clipboard even things like emoticons will be kept.
  • You may insert line breaks, unordered lists and blockquotes.
  • You may use various keyboard selection features like End/Home/PageUp/PageDown/Left/Up/Right/Down, Ctrl+A/End/Home, Ctrl+Shift+End/Home/Left/Right, Shift+End/Home/PageUp/PageDown/Left/Up/Right/Down and so forth...
  • Supports direct Unicode character input using Ctrl+[NumPad].
  • All silverlight font formatting is supported and even some more like SUP/SUB formatting.
  • You may define macros and a proper object class that should replace matching text, like emoticons...
  • In contrast to many other rich text editors, this one is fully real-time. That means no preview is required because the editor allows editing all things directly.
  • If you only use macros and IRichTextObject to extend the control, you will automatically get support for secure content serialization of all control elements. Content serialization also supports to reload content and edit it again.
  • Secure content serialization gets rid of any potential security leak when storing user typed formatted text on a server and presenting it to visitors, because it is fully verifiable.
  • You may restrict font formatting to a well defined custom subset. This allows you to ensure that all user typed input matches your needs or website design. (this feature is currently not implemented, but only prototyped)
  • Snapshots allow convenient access to formatted content and also Find&Replace with regular expressions for example...

"

 This is an compressed image of the Demo application:

 

Demo Application
 

I hope to hear from you of further improvements or bug reports... 

regards

christoph husse 

friendlyviper
friendly...

Member

Member

2 points

1 Posts

Re: Rich text editor is there...

Hey this component is great!!! I am developing a silverlight driven forum and this thing is the anwser to my prayers...

But I wonder if there is any way to output and edit XAML with it?? 

regards

john 

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Answered Question

Re: Re: Rich text editor is there...

That's nice to hear...

XAML output will be supported as sonn as XamlWriter is supported by Microsoft. XAML input will never be supported, because this is something special to Expression Blend and Visual Studio, and as you can see even Visual Studio 2008 is currently not able to edit XAML code in the Designer so how should my component be able to do this???

 

hope this helps,

regards

christop husse 

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Re: Re: Rich text editor is there...

Now a first "stable" release is available, named "RichtextEdit 1.2 Beta". I recommend testing it in FireFox because IE seems to be very unstable, maybe because of debugging support! I hope microsoft will fix this in Silverlight Beta 2...
 

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Re: Re: Re: Rich text editor is there...

A working demo is now available on:  http://michaelsync.net/2008/05/04/silverlight-rich-text-editor-demo

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Re: Re: Re: Re: Rich text editor is there...

Silverlight 2 Beta 2 is now supported... Big Smile 

VanSlater
VanSlater

Member

Member

8 points

5 Posts

Re: Rich text editor is there...

I have SL Beta installed and it am prompted to install SL when I attempt to run the demos. The link says tha the site was built for a previous version?

 Thanks

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Re: Rich text editor is there...

 Yes currently the online demos are not updated and also I have no chance to do this... Please post this comment on the blog where the demos are...

Just download the latest release from codeplex, which will work with the latest silverlight beta...

 

regards

christoph husse 

vitaminutza
vitaminutza

Member

Member

26 points

16 Posts

Re: Rich text editor is there...

Hi,

I've just started to look at this RTE. There isn't an option like RichTextBox.Rtf (WindowsForms) right? If I use teh InsertString option for entering teh text "This is RTF", there is no way to retrieve the coresponding {\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2507;}\viewkind4\uc1\pard\f0\fs20 This is RTF\par
}

?

Thanks

LooneyLynn
LooneyLynn

Member

Member

96 points

32 Posts

Re: Rich text editor is there...

No but you can implement it yourself... If you don't want to include rich text objects like buttons, images and so on, you can just look at the Serialization routine and write a RTF encoder/decoder... As my RTE is using the common Silverlight letters to display text you also have access to all the formatting in a well known manner...

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities