2

我已经安装了tinymce编辑器...我只能通过复制和粘贴一些网址来添加图像或添加媒体,我需要启用上传图像或媒体...而不仅仅是一个链接,请帮忙吗?我已将此代码用于我的文本区域:

<script type="text/javascript">
                    tinyMCE.init({
                            theme : "advanced",
                            mode : "specific_textareas",
                            editor_selector : "page_content",
                            plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
                            theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
                            theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
                            theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
                            theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
                            theme_advanced_toolbar_location : "top",
                            theme_advanced_toolbar_align : "left",
                            theme_advanced_statusbar_location : "bottom",
                            theme_advanced_resizing : true,
                    });
                    </script>
4

2 回答 2

2

默认情况下,tinymce 不提供从客户端计算机上传图像或媒体工具到您的服务器。但是有一个付费插件将为您提供所有这些便利。就这样吧。

http://www.tinymce.com/enterprise/mcimagemanager.php

于 2012-09-09T13:35:13.657 回答
0

好 Q,对于 ASP.NET MVC 项目来说很简单,并且设置完全设置。跨浏览器工作没有问题...,试试这个开源项目http://tinymcefckfilemanger.codeplex.com/

于 2012-09-09T13:38:07.790 回答