[UWP] [Xaml]将块引用添加到Rich Edit框 [英] [UWP][Xaml]Adding a block quote to Rich Edit box
问题描述
我正在尝试使用富文本格式开发本机UWP编辑器。我正在使用RichEditBox。如何在富编辑框中添加块引用。请建议我这方面的想法。
I'm trying to develop a native UWP editor with rich text formatting. I'm using RichEditBox for that. How can i add a block quote into the rich edit box. Please suggest me ideas on this.
MSDN论坛
推荐答案
目前没有这样的API可以直接向RichEditBox添加块引用。一种可能的方法是您可以尝试使用块引用标记加载Html字符串。您需要先将Html转换为Rtf,然后将转换后的字符串设置为RichEditBox的
文档。
Currently there is no such API that could directly add a block quote to the RichEditBox. A possible way is that you could try to load the Html string with block quote tag. You will need to convert Html to Rtf first and then set the converted string to the document of the RichEditBox.
你可以也打开你最喜欢的搜索引擎并搜索这个。有一些第三方图书馆可以做到这一点。
You could also open your favorite search engine and search about this. There are some third party libraries that could do that.
祝你好运,
Roy
这篇关于[UWP] [Xaml]将块引用添加到Rich Edit框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!