• FCKeditor用在JSP中的几点注意事项


    转自:https://blog.csdn.net/asinzy/article/details/3854127

    本篇文章主要介绍了"FCKeditor用在JSP中的几点注意事项",主要涉及到FCKeditor用在JSP中的几点注意事项方面的内容,对于FCKeditor用在JSP中的几点注意事项感兴趣的同学可以参考一下。

    1、如果是用javascript调用FCKeditor,注意其中的basePath路径的含义——"/test/FCKeditor/"中的第一个“/”表示整个应用服务器根目录,test表示工程名,FCKeditor为test工程下的一个文件夹,最后的“/”不能少,否则报错
    <script type="text/javascript">
    var oFCKeditor = new FCKeditor('content') ;
    oFCKeditor.BasePath = "/test/FCKeditor/" ;
    oFCKeditor.Height = 400;
    oFCKeditor.ToolbarSet = "Default" ;
    oFCKeditor.ReplaceTextarea();
    </script>
    2、 如果采用标签形式调用FCKeditor,与上面不同的是"/fckeditor"中的“/”表示的是用了fckeditor的这个特定工程的根目录,因为以下代码在服务器端执行,而javascript在客户端执行,所有有如此的区别。 并且value="000"这个地方,字符串不能为空字符串,哪怕你设定一个“ ”也行,但不能为“”
    <FCK:editor instanceName="myEditor" basePath="/fckeditor" value="000" >
      000000
    </FCK:editor>
  • 相关阅读:
    JS 异步编程
    JS XMLHttpRequest
    JS 日期
    JS DOM
    JS 异常处理
    JS BOM
    JS 正则表达式
    JS 面向对象
    (22)python PhantomJS
    HDU1698 线段树(区间更新区间查询)
  • 原文地址:https://www.cnblogs.com/sharpest/p/6017870.html
Copyright © 2020-2023  润新知