Tinymce编辑器支持图片上传和媒体上传

标签 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>

最佳答案

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

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

关于Tinymce编辑器支持图片上传和媒体上传,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12339502/

相关文章:

jquery - TinyMCE 显示 html 标签

javascript - jquery/javascript 检测 tinymce 中的点击事件

Tinymce - 使用 html 标签重新加载数据

javascript - TinyMCE - window.blur 函数在编辑器焦点上触发

javascript - 添加新按钮到 Tinymce 工具栏 C#

javascript - TinyMCE - 使 url 可点击

javascript - 将tinyMCE内容替换为原文

php - 将拼写检查器集成到 Tinymce 中不起作用

php - Silverstripe tinyMCE 添加自定义插件

php mysql html 标签