richtext

How to use XSL:Key to get the following-sibling in XSLT 2.0

你说的曾经没有我的故事 提交于 2019-12-12 01:37:28
问题 I have XML with embedded rich text formatting, which looks roughly like this: <?xml version="1.0" encoding="UTF-8"?> <document> <richtext> <pardef/> <par><run>This is the </run><run>preamble.</run></par> <pardef list='bullet'/> <par><run>This is the </run><run>first bullet.</run></par> <par><run>This is the second </run><run>bullet.</run></par> </richtext> </document> I am attempting to generate the following HTML: <p>This is the preamble.</p> <ul> <li>This is the first bullet</li> <li>This

Save content rich text editor to blob field in mysql database

依然范特西╮ 提交于 2019-12-12 00:45:08
问题 I'm trying to save the content from a rich text editor (ckeditor in my case) to my a blob field in my database. This is my ViewModel: public class ArticleViewModel { [Required] [Display(Name = "Title")] public string Title { get; set; } [Required] [Display(Name = "Description")] public string Description { get; set; } [Required] [Display(Name = "Article Body")] public string ArticleBody { get; set; } } The Article Body is my rich text field like this in my view: <div class="editor-label">

CQ rich text field editor enable bold, italic and underline styles, plus bullet and numbered lists only

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:49:22
问题 I have a rich text field editor widget, What I need is to activate functions (bold, italic and underline styles, plus bullet and numbered lists only.) Here is the xml of my widget: <richtextfield jcr:primaryType="cq:Widget" fieldLabel="this is rich text field" name="./richtextfield" xtype="richtext"> <rtePlugins jcr:primaryType="nt:unstructured"> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> </rtePlugins> </richtextfield> as you can see i have all features enabled here,,

191210P4 Java富文本编辑之图片链接本地化

随声附和 提交于 2019-12-11 10:47:27
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Java富文本编辑之图片链接本地化 作者:邵发 官网: http://afanihao.cn/java 本文介绍在图文混编项目中(博客、新闻等),如何将富文本中的图片外链转为本地链接的问题。本文是Java学习指南系列教程的官方配套文档,项目源码在本文末尾说明。 所谓富文本Rich Text,就是以HTML形式表示的文本。在前端通常由富文本编辑器得到,比如UEditor,KindEditor,wangEditor等富文本编辑器。在富文本中可能存在外链的图片链接,那么后台如何将外链图片转为本站链接,是本文要讨论的话题。 1. 富文本编辑器 在需要实现图文混排功能时,可以使用前端的富文本编辑器。常见的富文本编辑器有 UEditor, KindEditor, wangEditor等,使用起来大同小异。比如,下图以KindEditor来演示。 在提交给后台时,可以调用编辑器提供的API来获取编辑器里面的HTML文本,里面包含了CSS样式和图片链接。关于富文本编辑器的使用,不在本文中详述。 2. 富文本中的图片外链 当富文本中包含了图片外链接,一般要求将外链转换为本站链接。 例如以下文本: <p> 根据外媒报道,12月6日,美国海军最新的两栖攻击舰“美国”号抵达了日本佐世保,加入了美国海军第七舰队。 </p> <p

A good rich text control for Silverlight [closed]

三世轮回 提交于 2019-12-11 09:52:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm looking for a good rich text control for Silverlight. The one on codeplex seems to be out of date and another free one I saw on vectorlight doesn't seem to save as RTF (it uses custom xml) or doesn't have printing capabilities. I'm thinking about dishing out some bucks for the Telerik, ComponentOne, or

Inserting ole object to TRxRichEdit

坚强是说给别人听的谎言 提交于 2019-12-11 05:38:44
问题 I'm using TRxRichEdit in my program. How can I insert ole object to RxRichEdit at run time. 回答1: If you call "InsertObjectDialog" method of the RxRichEdit, the control executes the Insert Object dialog where the user can choose the type of the object to create anew or from an existing file. I don't think it would be possible to insert an object without using the dialog, because the IRichEditOle interface (FRichEditOle) is private to the class. edit: Regardless the interface being private or

How to prevent TRichMemo from resetting text attributes when you add new text

筅森魡賤 提交于 2019-12-11 04:47:32
问题 I have a TRichMemo object which I create and populate with text at runtime. I have a timer that triggers a function each 10 seconds. The function looks something like this: procedure TServerSideForm.NewLineTimerTimer(Sender: TObject); var timeForward: TDateTime; timerText: wideString; startRange, endRange: longInt; begin timeForward := Time; timeForward := IncSecond(timeForward, ServerSideForm.NewLineTimer.Interval div 1000); //... timerText := TimeToStr(Time) + ' - ' + TimeToStr(timeForward)

Paste rich text into Flash?

冷暖自知 提交于 2019-12-11 01:37:39
问题 Is it possible to capture rich text when pasting into Flash? Using a Flex TextEditArea, I can paste richly formatted text within Flash itself, but if I try to paste from an external source (say web page, microsoft word, etc) it comes in as plain text. Same for the reverse: if I copy rich text from within Flash, and paste to an external source, it goes out as plain text. 回答1: I'm part way there, so far I've got this: <s:RichEditableText paste="pasteHandler(event)" width="100%" height="100%"/>

Spark TextArea or RichText autosize

谁说胖子不能爱 提交于 2019-12-08 21:12:01
问题 I have done lots of searching on this subject, but it seems what I am finding is either out of date or just does not seem to work. With TextFields in the past, you could set the TextField to a certain width, set wordWrap to true and you would end up with a textfield that changed height according to the text you added. Now I am trying to do this with either the Spark TextArea or RichText. I tried this HeightInLines = NAN, but that seems to be out of date. I also tried this routine: var

visual studio crashes randomly devenv KERNELBASE.dll

瘦欲@ 提交于 2019-12-08 11:55:48
问题 My Visual Studio crashes randomly. Event Viewer shows the following error Faulting application name: devenv.exe, version: 12.0.40629.0, time stamp: 0x5590c8a4 Faulting module name: KERNELBASE.dll, version: 10.0.15063.674, time stamp: 0x6d16dd24 Exception code: 0xe0434352 Fault offset: 0x000eb872 Faulting process id: 0x3b00 Faulting application start time: 0x01d34ecf7a049150 Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe Faulting module