[英]tinyMCE editor version 3 upload image option
i am using tinyMCE 3 for my project. 我在我的项目中使用tinyMCE 3。 Unfortunately image upload option is not by default. 不幸的是,默认情况下图像上传选项不是默认的。 I am trying by adding some code, but its not working with tinyMCE v3. 我正在尝试通过添加一些代码,但是它不能与tinyMCE v3一起使用。 See its not giving option to browse image. 查看其不提供选项以浏览图像。
Here is what i am doing : 这是我在做什么:
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugin : 'imgmanager',
theme_advanced_buttons1 : 'imgmanager'
});
But its not working for me. 但是它对我不起作用。
Like my comment you are not pressing the correct button (probably you have not configured correctly tinyMCE
and it is not displaying your plugin's button) Below is the configuration that worked for me: 就像我的评论一样,您没有按正确的按钮(可能您没有正确配置tinyMCE
,并且未显示插件的按钮)以下是对我tinyMCE
的配置:
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : 'imgmanager',
theme_advanced_buttons1 : "imgmanager",
});
</script>
Notice plugin
is wrong, it should be plugins
注意plugin
是错误的,应该是plugins
Of course make sure you have copied the imgmanager
plugin to yours tinyMCE installation plugins
folder. 当然,请确保已将imgmanager
插件复制到您的tinyMCE安装plugins
文件夹中。
Here is a screenshot of mine: 这是我的屏幕截图:
The plugin button is on the upper left corner. 插件按钮在左上角。
UPDATE 更新
For configuration instructions please have a look here: http://www.binpress.com/app/tinymce-3x-image-manager-and-editor/781 有关配置说明,请在此处查看: http : //www.binpress.com/app/tinymce-3x-image-manager-and-editor/781
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.