JSP编辑器FCK怎么嵌入,有哪个高人指导下。
QQ:547568327

解决方案 »

  1.   

    在官网http://www.fckeditor.net/上有java的示例
      

  2.   


    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.fckeditor.net" prefix="FCK" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>FCKeditor.java2.4 for FCKeditor2.6.3Beate text</title>
      </head>
      <body>
    <FCK:editor instanceName="MyEditor" basePath="/fckeditor/" toolbarSet="myTool" value="this is contend">
           <jsp:body>
       <FCK:config CustomConfigurationsPath="/FCKeditor/fckeditor/MyConfig/MyConfig1.js" />
           </jsp:body>
    </FCK:editor>
      </body>
    </html>
      

  3.   

    或者    <form action="result.jsp" method="post">
        <FCK:editor basePath="/fckeditor/" instanceName="content">
        <jsp:attribute name="value">
        您的内容.....
        </jsp:attribute>
      </FCK:editor>
      <input type="submit" value="提交">
      

  4.   

    <%@ page language="java" pageEncoding="utf-8"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
    <%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
    <html>
    <head>
    <title>JSP for Blog_info_newForm form</title>
    </head>
    <body>
    <html:form action="/blog_info_new">
    title : <html:text property="title" />
    <html:errors property="title" />
    <br />
    context :<FCK:editor instanceName="context" toolbarSet="Default">
    <jsp:attribute name="value">&nbsp;</jsp:attribute>
    </FCK:editor>
    <html:errors property="context" />
    <br />
    <html:submit />
    <html:cancel />
    </html:form>
    </body>
    </html>
      

  5.   

    下下来的东西里头带个demo,楼主照猫画虎一下就OK了。。
      

  6.   

    以前项目开发的时间写的 看看
    http://hi.baidu.com/aboutwork001/blog/item/16ba69fbde0feb244f4aea06.html
      

  7.   

    以前项目开发的时间写的 看看
    http://hi.baidu.com/aboutwork001/blog/item/16ba69fbde0feb244f4aea06.html
      

  8.   

    <%@ page language="java" pageEncoding="utf-8"%>
    <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
    <%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
    <html>
        <head>
            <title>JSP for Blog_info_newForm form</title>
        </head>
        <body>
            <html:form action="/blog_info_new">
                title : <html:text property="title" />
                <html:errors property="title" />
                <br />
                context :<FCK:editor instanceName="context" toolbarSet="Default">
                    <jsp:attribute name="value">&nbsp;</jsp:attribute>
                </FCK:editor>
                <html:errors property="context" />
                <br />
                <html:submit />
                <html:cancel />
            </html:form>
        </body>
    </html>