TinyMCE在GWT中加载,但工具栏按钮不起作用
我正在smartgwt项目中使用。我已经编写了一些代码来创建一个面板&向该面板添加一个textarea项,然后加载tinymce编辑器。它工作正常&我可以正确加载它&它可以很好地显示所有需要的按钮。但我有一个问题,没有工具栏按钮可以工作(单击它们不会发生任何事情)。这是我用来初始化TinyMCE的本机GWT方法:TinyMCE在GWT中加载,但工具栏按钮不起作用,gwt,button,tinymce,toolbar,smartgwt,Gwt,Button,Tinymce,Toolbar,Smartgwt,我正在smartgwt项目中使用。我已经编写了一些代码来创建一个面板&向该面板添加一个textarea项,然后加载tinymce编辑器。它工作正常&我可以正确加载它&它可以很好地显示所有需要的按钮。但我有一个问题,没有工具栏按钮可以工作(单击它们不会发生任何事情)。这是我用来初始化TinyMCE的本机GWT方法: protected native void init(String id) /*-{ try{ $wnd.tinyMCE.init({
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);
}
}-*/;
我建议你看看这两个其他的项目,它们似乎在做你正在尝试的事情 或者这个:
有错误吗?或者一些相关的日志信息?