0

我正在尝试通过以下方式将按钮添加到编辑器编辑器

redactor_options = {
        'lang' : 'en',
        'placeholder' : 'here',
        'buttonsAdd' : ['code_editor'],
        'buttonsCustom' : {
            'code_editor' : {
                'title' : 'CodeEditor',
                'callback' : "function(obj1, obj2, obj3){var a=1;}",
            }
        },
    },

但是每当我单击按钮时,我都会在控制台中收到错误消息
“未捕获的 TypeError:对象#的属性'回调'不是函数”

4

0 回答 0