zoukankan      html  css  js  c++  java
  • Fckeditor 纯js版的用法

     1<script language="javascript">
     2  // 创建相当于<textarea name="editor" style="100%;"></textarea>的对象
     3  // 参数'editor'是产生的textarea的name值
     4  var oFCKeditor = new FCKeditor('editor') ;
     5  oFCKeditor.BasePath = "/SightSpots/JavaScripts/FCKeditor/" ; // 必须指定
     6  oFCKeditor.Config["BaseHref"]=""// 保证相对路径相对于上下文
     7  oFCKeditor.Config["DefaultLanguage"]="zh-cn"// 默认语言
     8  oFCKeditor.Width = "100%"// 编辑器宽度
     9  oFCKeditor.Height = "300"// 编辑器高度
    10  oFCKeditor.Create() ;
    11                        </script>
    1<script language="javascript" src="/JavaScripts/FCKeditor/fckeditor.js"></script>
    2
    3src="" 是该js的路径
  • 相关阅读:
    1105 Spiral Matrix
    Spring Boot 单元测试
    第一个 Spring Boot 应用程序
    Spring Boot 优缺点
    Spring Boot 简介
    第一个 Spring 应用程序
    Spring 体系结构
    Spring 与 IoC
    Spring 的特点
    Spring 简介
  • 原文地址:https://www.cnblogs.com/suneryong/p/719490.html
Copyright © 2011-2022 走看看