我在我的laravel应用中使用trumbowyg wysiwyg编辑器。在编辑器中,虽然已经安装了上传插件,但上传选项并未显示。

发布于 2015-10-15 22:59:25
当你调用插件时,你需要确保你包含了一些东西。
btns: ['viewHTML',
'|', 'formatting',
'|', 'btnGrp-design',
'|', 'link',
'|', 'image',
'|', 'btnGrp-justify',
'|', 'btnGrp-lists',
'|', 'horizontalRule']您还需要自定义图像按钮以包含下拉菜单
btnsDef: {
// Customizables dropdowns
image: {
dropdown: ['insertImage', 'upload', 'base64'],
ico: 'insertImage'
}
},下面是我的完整示例
$('textarea').trumbowyg({
autogrow: true,
fullscreenable: false,
btnsDef: {
// Customizables dropdowns
image: {
dropdown: ['insertImage', 'upload', 'base64'],
ico: 'insertImage'
}
},
btns: ['viewHTML',
'|', 'formatting',
'|', 'btnGrp-design',
'|', 'link',
'|', 'image',
'|', 'btnGrp-justify',
'|', 'btnGrp-lists',
'|', 'horizontalRule']
});https://stackoverflow.com/questions/32752690
复制相似问题