【问题标题】:Tinymce editor enable image upload and media uploadTinymce 编辑器启用图片上传和媒体上传
【发布时间】:2012-09-02 14:24:28
【问题描述】:

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

【问题讨论】:

    标签: tinymce


    【解决方案1】:

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

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

    【讨论】:

    • 伙计,如果我购买了插件...我可以在每个 tinymce 编辑器中使用它吗?...例如,如果我有 5 个网站..并且安装了 5 次 tinymce 编辑器?
    • 是的.. 如果您在同一域上使用 tinymce。不管你初始化了多少次。
    • 那你应该拿服务器许可证
    【解决方案2】:

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

    【讨论】:

    • 如果你优化其他语言,还需要 4-5 种语言(Ruby,PHP,python,..)。图片上传设置使用 CKEditor 编辑器。
    • 我没事!试试tinymcefckfilemanger.codeplex.com在Scripts文件夹中下载项目复制你的项目2文件夹和1文件,CKEditor和Tiny Editor还有管理器脚本文件。
    猜你喜欢
    • 2022-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-26
    • 2015-11-15
    • 2010-12-11
    相关资源
    最近更新 更多