Examples of XHtmlTagTool


Examples of net.fckeditor.tool.XHtmlTagTool

   *
   * @return the produced XHTML tag
   */
  private String createInputForVariable(final String id, final String name,
      final String value) {
    XHtmlTagTool tag = new XHtmlTagTool("input");
    tag.addAttribute("id", id);
    tag.addAttribute("name", name);
    tag.addAttribute("value", value);
    tag.addAttribute("type", "hidden");
    return tag.toString();
  }
View Full Code Here

Examples of net.fckeditor.tool.XHtmlTagTool

      editorLink.append("/editor/fckeditor.html?InstanceName=").append(
          instanceName);
      if (Utils.isNotEmpty(toolbarSet))
        editorLink.append("&Toolbar=").append(toolbarSet);

      XHtmlTagTool iframeTag = new XHtmlTagTool("iframe",
          XHtmlTagTool.SPACE);
      iframeTag.addAttribute("id", instanceName.concat("___Frame"));
      iframeTag.addAttribute("src", editorLink.toString());
      iframeTag.addAttribute("width", width);
      iframeTag.addAttribute("height", height);
      iframeTag.addAttribute("frameborder", "0");
      iframeTag.addAttribute("scrolling", "no");
      strEditor.append(iframeTag);

    } else {
      XHtmlTagTool textareaTag = new XHtmlTagTool("textarea",
          encodedValue);
      textareaTag.addAttribute("name", inputName);
      textareaTag.addAttribute("rows", "4");
      textareaTag.addAttribute("cols", "40");
      textareaTag.addAttribute("wrap", "virtual");
      textareaTag.addAttribute("style", "width: ".concat(width).concat(
          "; height: ").concat(height));
    }
    strEditor.append("</div>");
    return strEditor.toString();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.