I need a rich text editor for metro apps, I hope the editor stores the data as html, because in the database there are already tons of html based data. Any recommended?
Check out the Rich Edit Box...
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.richeditbox
I'm not quite sure whether you can get HTML or not...
UPDATE
It handles RTF and not HTML. You'll have to write your own translator. Check the following link.
http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/50bdd84b-03c1-45bd-a3a6-b960954b54fc/
Related
Is there a way to capture the Froala rich text editor content and write to sql database. How does the data transforms if I attach an image to the body of the rich text? I have been struggling to capture this on my webapp using C#. Please let me know if anyone managed to do this. I currently have this editor enabled on my webpage and I'm trying to capture the content to the database when I press the submit button.
this is how I implemented the editor https://froala.com/wysiwyg-editor/docs/overview/
I'm developing a tool to manage email lists, send and receive emails like outlook.
I'm stuck at the editor (compose area) part.
I tried to use Rich textbox and got 2 problem.
Rich Textbox doesn't allow me to paste pictures from the sources (web-page or docx)
I have no idea how to convert the content in the rich textbox into HTML format to send it out.
Any ideas? I appreciate your help.
It's not free, but you can check out the DevExpress tool suite. They have Rich Text Editor that mimics much of Word's functionality. You did not mention what you are building this tool in, but this can be for ASP.NET/MVC as well as WinForms/WPF.
https://demos.devexpress.com/ASPxRichEditDemos/Default.aspx
Outlook itself uses Word (well, Word-light) for message editing.
I'm running into a problem that I can't seem to figure out. The scenario is:
Download a bunch of text data as an HTML string
Use an HTML-to-Xaml converter to parse the HTML string and create a List<Block> (Windows.UI.Xaml.Documents.Block).
Display the collection of Blocks as a RichTextBlock control that's available in WinRT.
All of that works well. The problem is, I want to export this data as either a doc/docx or pdf file. Is there a way to export either the RichTextBlock directly or add these Blocks to a RichEditBox or even use the original HTML string to export to the file?
I looked at the Syncfusion Essential Studio, that offers the RichTextBoxAdv control, that's used as:
xmlns:rtba="using:Syncfusion.UI.Xaml.RichTextBoxAdv">
<Grid>
<rtba:SfRichTextBoxAdv>
</rtba:SfRichTextBoxAdv>
</Grid>
But so far as I can tell, there is no way to import Block data or use an HTML string. The latter used to exist in WPF but it's not there anymore. Any suggestions?
Syncfusion SfRichTextBoxAdv control for WinRT supports importing and exporting HTML document, Word document, Rich Text Format document and Text document. With the help of this functionality, you can easily achieve your requirement by using Syncfusion SfRichTextBoxAdv control. Please do find the sample from below link.
Sample link:
http://www.syncfusion.com/downloads/support/directtrac/general/ze/Sample-2055612463
Kindly go through the online KB from following link, to know more information about binding HTML string to SfRichTextBoxAdv control.
https://www.syncfusion.com/kb/5415/how-to-bind-html-text-in-sfrichtextboxadv-control
Regards,
Arumuga Perumal S.
I come from a world (iOS and OSX) where saving a rich text string (NSAttributedString) to a file is easy (NSAttributedString can serialise itself as RTF or HTML etc.)
I'm now porting my app to Windows/C# and trying to figure out how to load/save RTF (so that my apps can share a file format)
It looks like I need to create a control (RichTextBox) in order to import RTF - which is OK for testing, but I need to read in thousands of rich text snippets so this is (probably) going to be a bit of a bottleneck.
How is this type of cross platform rich text format best achieved? I'm starting to think I will need to copy the .docx approach and create XML with textRun elements etc? This strikes me as a problem that must have been solved already - but google is not forthcoming!!
Thanks
I have markdown, how i can display formatted text in win 8 apps?
Things i have tried, that may or may not be useful to any answer
I tried converting markdown to rtf and show result in RichTextBlock, but I have problem with markdown to rtf converting.
Hmmm. Trickier than I suspected...
I'd suggest using markdownsharp to derive html from your markdown and to display that in an html view. (of which I'm sure "Windows 8 apps" have at least one)
EDIT
You can then either show this in a WebView or follow this article to convert to rtf.
I wrote this Markdown parser in C#, which exports to HTML and XAML. If you generate XAML, you can access it by using the XamlReader class and display it in a WPF application. (You can also display the HTML version if you choose to.)
https://github.com/PeterWaher/IoTGateway/tree/master/Content/Waher.Content.Markdown
It's part of a larger project:
https://github.com/PeterWaher/IoTGateway/