如何删除 CKeditor 的新图像属性?照片上传,还是浏览器服务器属性?
我刚刚升级了我的 ckEditor,它添加了一些我现在不需要的选项。
其中包括浏览文件中的图像,而不仅仅是将它们作为 URL 包含在内。如何删除这些选项?
I just upgraded my ckEditor, and it's added a few options I don't want right now.
Of them are to browse images from files rather than just include them as urls. How do I remove those options?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
创建编辑器时使用 removeDialogTabs 参数,例如使用 jQuery 插件:
Use the removeDialogTabs parameter when you create the editor, for example, using the jQuery plugin:
在源 HTML/JS 文件中,您将有一些用 CKEditor 替换
textarea
的代码。它的内容如下:如果删除
filebrowserUploadUrl
参数(或清空分配给它的字符串),则图像上传选项卡将消失。请注意,除了或代替
filebrowserUploadUrl
,您还可以有一个名为filebrowserImageUploadUrl
的参数。在这种情况下,您还必须删除或清空此参数。有关更多详细信息,请参阅文件浏览器(上传器)。
其他解决方案
您还可以自定义每个对话框:
因此,如果您想以这种方式删除上传选项卡,只需添加以下代码:
In your source HTML/JS file you'll have some code that replaces a
textarea
with the CKEditor. It reads something like:If you delete the
filebrowserUploadUrl
parameter (or empty the string assigned to it), the image upload tab will be gone.Note that, apart from or instead of
filebrowserUploadUrl
, you can also have a parameter calledfilebrowserImageUploadUrl
. In that case, you have to delete or empty this parameter as well.See File Browser (Uploader) for more details.
Other solution
You can also customize every dialog:
So, if you want to remove the upload tab this way, just add the following code:
只需将其添加到您的 config.js 中即可。好摆脱。
Just add this to your config.js . Good riddance.