Tinymce编辑器启用图像上传和媒体上传

时间:2012-09-09 13:32:41

标签: tinymce

我已经安装了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>

2 个答案:

答案 0 :(得分:2)

默认情况下,tinymce不会将客户端计算机上的图像或媒体工具提供给您的服务器。但是有一个付费的插件将为您提供所有这些设施。在这里。

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

答案 1 :(得分:0)

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