【发布时间】:2018-01-02 02:02:30
【问题描述】:
我想自定义我的 Tinymce UI。
当我点击上传图片按钮时,
我将获得一个插入/编辑图像 div,
但是我不需要通用,只需要上传。
我该怎么办?
tinymce.init({
selector: 'textarea',
menubar: false,
plugins: 'image emoticons',
toolbar: 'image emoticons',
force_br_newlines : false,
force_p_newlines : false,
forced_root_block : '',
branding: false,
statusbar : false,
setup: function (editor) {
editor.on('change', function () {
editor.save();
});
},
images_upload_handler: function (blobInfo, success, failure) {
success('http://moxiecode.cachefly.net/tinymce/v9/images/logo.png');
},
});
【问题讨论】:
-
你需要添加你的代码,这样我们才能看到你到目前为止所做的事情。此外,它将帮助您阅读本文档:stackoverflow.com/help/how-to-ask
-
对不起,我的错误。我更新它,谢谢!
-
你找到解决办法了吗?
标签: javascript jquery tinymce-4