0

我在 smartgwt 项目中使用tinymce-gwt 。我已经编写了一些代码来创建一个面板并将一个 textarea 项添加到该面板然后加载 tinymce 编辑器。它工作正常,我可以正确加载它,它可以很好地显示所有需要的按钮。但我有一个问题,工具栏按钮不起作用(点击它们没有任何反应)。这是我用来初始化 TinyMCE 的原生 GWT 方法:

protected native void init(String id) /*-{
    try{
        $wnd.tinyMCE.init({
                mode: "exact",
                elements: id,
                theme : "advanced",
                theme_advanced_buttons1 : "fontselect,fontsizeselect,formatselect,bold,italic,underline,strikethrough,separator,sub,sup,separator,cut,copy,paste,undo,redo",
                theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,justifyfull,separator,numlist,bullist,outdent,indent,separator,forecolor,backcolor,separator,hr,link,unlink,jbimages,image,table,separator,asciimath,asciimathcharmap,asciisvg",//media, code
                theme_advanced_buttons3 : "",
                theme_advanced_fonts : "Arial=arial,helvetica,sans-serif,Courier New=courier new,courier,monospace,Georgia=georgia,times new roman,times,serif,Tahoma=tahoma,arial,helvetica,sans-serif,Times=times new roman,times,serif,Verdana=verdana,arial,helvetica,sans-serif",
                theme_advanced_toolbar_location : "top",
                theme_advanced_toolbar_align : "left",
                theme_advanced_statusbar_location : "bottom",
                relative_urls : false,
                plugins : 'jbimages,asciimath,asciisvg,table,inlinepopups,media',
                AScgiloc : '/tinyMCE/plugins/asciisvg/php/svgimg.php',
                ASdloc : 'plugins/asciisvg/js/d.svg',   
                content_css : "css/content.css"
            });
    }catch(e){
        alert(e);
    }
}-*/;
4