【问题标题】:TinyMCE loads in GWT, but toolbar buttons does not workTinyMCE 在 GWT 中加载,但工具栏按钮不起作用
【发布时间】:2012-05-12 05:51:40
【问题描述】:

我在 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);
    }
}-*/;

【问题讨论】:

  • 有什么错误吗?或者一些相关的日志信息?

标签: gwt button tinymce toolbar smartgwt


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-03-28
  • 1970-01-01
  • 1970-01-01
  • 2021-04-25
  • 1970-01-01
  • 1970-01-01
  • 2014-07-26
相关资源
最近更新 更多