我尝试通过以下方式将按钮添加到redactor编辑器
redactor_options = {
'lang' : 'en',
'placeholder' : 'here',
'buttonsAdd' : ['code_editor'],
'buttonsCustom' : {
'code_editor' : {
'title' : 'CodeEditor',
'callback' : "function(obj1, obj2, obj3){var a=1;}",
}
},
},
但每当我点击按钮,控制台上就会出现错误消息
“Uncaught TypeError:对象的属性'callback'不是函数”
目前没有回答
相关问题 更多 >
编程相关推荐