rich:编辑器在插入图像时禁用convert_urls relative_urls

时间:2013-11-26 12:33:40

标签: jsf tinymce richfaces seam

我使用富编辑器(Seam,jsf),这是我的代码:

<rich:editor value="#{bean.variableName}" height="280" width="400" theme="advanced" id="editor">
   <f:param name="theme_advanced_buttons1" value="save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect"/>
   <f:param name="theme_advanced_buttons2" value="cut,pasteword,copy,paste,pastetext,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor,hr,removeformat,visualaid,"/>
   <f:param name="theme_advanced_toolbar_location" value="top"/>
   <f:param name="theme_advanced_toolbar_align" value="left"/>
   <f:param name="theme_advanced_statusbar_location" value="bottom"/>
   <f:param name="theme_advanced_resizing" value="true"/>
   <f:param name="language" value="#{locale.language}"/>

当我从外部网址插入图片时没有问题, 但是当我从应用程序所在的主机插入图像时,图像URL被转换(缩短)

来自

<img src="https://myhost/path/my_image.png" />

<img src="../../my_image.png" />

我尝试使用rich:editor(http://livedemo.exadel.com/richfaces-demo/richfaces/editor.jsf?tab=info&cid=979762)的选项找到它 但似乎没有合适的选项,我在stackoverflow Disable TinyMCE absolute to relative URL Conversions中也发现了问题,但是在js中,与我的情况不同,我试图找到富有的地方:编辑器从中获取,编辑那里js文件(如果存在的话),但我找不到它。请帮我解决这些网址转换问题,谢谢!

0 个答案:

没有答案