TinyMC官网上有个插件叫做MCFileManager,可以使用它来进行图片管理,无奈它是收费的。于是Google几十下,试了好几种方法总是有问题,几经周折找到了完美解决此问题的地方Simple Image Upload Plugin for TinyMCE,此网站提供一款及其简单并且免费开源的TinyMCE图片上传插件markettoimages. 配置和使用方法网站上说的简单明了,现摘录如下。
1. Download distribution pack. Unzip it into TinyMCE’s plugins folder.(下载markettoimages包,解压并存放在TinyMCE的plugins文件夹中。)
2. Edit config.php file found in plugins/markettoimages. Minimally, you should only specify a target directory for your uploads. Every block of config. php is well-commented, so I think everything should go right.(编辑plugins/markettoimages中的config.php文件,指定上传图片文件的存放位置。具体的设置是把markettoimages/config.php的28行:$config['img_path'] = '/images/somefolder';修改为自己需要的位置。提醒:路径是相对网站根目录的,没有最后的斜杠“/”。)
3. Activate markettoimages plugin and add markettoimages button in TinyMCE. Don’t forget to set theme: advanced and realtive_urls:false. See an exmple below:(激活markettoimages插件,并在TinyMCE中添加markettoimages按钮。不要忘记设置theme为advanced以及设置relative_urls为false.下面是一个配置的例子,具体位置是在调用TinyMCE的初始化语句部分。)
tinyMCE.init({
theme : "advanced",
relative_urls : false,
plugins : "markettoimages, ***",
theme_advanced_buttons1 : "markettoimages,|,***"
* * *
});
救了命了
回复删除我修改过的还带图片管理功能的上传插件,可以媲美官方的
回复删除http://www.ucmark.com/index.php/2011/06/tinymce_with_ajaxfilemanager/
求帮助...给个联系信息...啊...在线等...
回复删除@jiong
回复删除嗯,联系信息已发到你留下的邮箱。
你好,能把那个markettoimages插件发一下到我的邮箱吗?下载不了,谢谢
回复删除@anguse
回复删除插件已发到你的邮箱。另,该插件在DOCS中是可以下载的,我刚测试。
同求markettoimages 插件,帮忙发一个至我的邮箱,你给的链接下载不了(网页都打不开)
回复删除我的邮箱是:plainzeng@qq.com
你指的DOCS是指 Google DOCS吗?(https://docs.google.com/)
能不能给我发到邮箱里 亲谢谢了 对了 他的语言包能不能是中文的
回复删除@anguse @plainzeng @gyh
回复删除该markettoimages插件我是放在Google DOCS上面的,可能有些地区无法访问,当然对懂点技术的人例外。补充一个SkyDrive的下载地址:markettoimages插件。
http://justboil.me/tinymce-images-plugin/ 这里面有详细的教程 你的那个包和这个一样
回复删除非常感谢了.多亏了你的文章,我不用加班了...
回复删除