RichTextArea JS 客户端源码哪里找?

问题描述 投票:0回答:1

https://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwRichText

这是 GWT 的服务器代码:

  /**
   * The constants used in this Content Widget.
   */
  public static interface CwConstants extends Constants {
    String cwRichTextDescription();

    String cwRichTextName();
  }

  /**
   * Initialize this example.
   */
  @Override
  public Widget onInitialize() {
    // Create the text area and toolbar
    RichTextArea area = new RichTextArea();
    area.ensureDebugId("cwRichText-area");
    area.setSize("100%", "14em");
    RichTextToolbar toolbar = new RichTextToolbar(area);
    toolbar.ensureDebugId("cwRichText-toolbar");
    toolbar.setWidth("100%");

    // Add the components to a panel
    Grid grid = new Grid(2, 1);
    grid.setStyleName("cw-RichText");
    grid.setWidget(0, 0, toolbar);
    grid.setWidget(1, 0, area);
    return grid;
  }

如果

gwt
是一个开源项目,那么在浏览器中呈现该区域的客户端源代码在哪里?

gwt open-source
1个回答
0
投票

根据http://candidtim.github.io/gwt/2010/06/25/gwt-rich-text-editor.html

,gwt编辑器没有javascript代码

您可以使用闭包库编辑器https://google.github.io/closure-library/source/closure/goog/demos/用于前端

© www.soinside.com 2019 - 2024. All rights reserved.