fckeditor 常用函数

时间:2023-01-25 15:47:11 

插入:


oEditor.FCKSelection.GetSelectedElement();
oEditor.FCK.InsertHtml("<br />");




FCKCommands.RegisterCommand('htmlcode',new FCKDialogCommand( 'htmlcode', FCKLang.htmlcodeBtn, FCKPlugins.Items['htmlcode'].Path + 'fck_htmlcode.html', 500, 420 ) ) ;
var ohtmlcode=new FCKToolbarButton('htmlcode',FCKLang.htmlcodeBtn);
ohtmlcode.IconPath=FCKPlugins.Items['htmlcode'].Path+'htmlcode.GIF';
FCKToolbarItems.RegisterItem('htmlcode',ohtmlcode);

//创建用于所htmlcode操作的对象
var FCKhtmlcode = new Object() ;

// 这个添加的方法将在弹出窗口点击ok按钮时被调用。
// 该方法将会接收从对话框中传来的值。

FCKhtmlcode.Add = function(strtemp,str)
{
FCK.InsertHtml("["+str+"]<br>"+strtemp+"<br>[/"+str+"]") ;
}

标签:fckeditor,常用函数
0
投稿

猜你喜欢

  • 使用PDB简单调试Python程序简明指南

    2022-07-27 21:03:28
  • 聊一聊JS中的prototype

    2024-05-02 16:20:18
  • python生成器的使用方法

    2021-12-03 22:40:49
  • easy_install python包安装管理工具介绍

    2022-01-01 14:06:59
  • python文件目录操作之os模块

    2023-01-10 14:22:59
  • python二叉树常用算法总结

    2023-01-15 01:35:18
  • Python pickle模块用法实例

    2022-06-30 10:29:04
  • Python 操作 PostgreSQL 数据库示例【连接、增删改查等】

    2021-12-14 00:54:08
  • JavaScript队列数据结构详解

    2024-05-02 16:19:39
  • XAMPP和Mysql共存的方法

    2010-12-03 16:34:00
  • 使用模板实现ASP代码与页面分离

    2008-09-12 16:07:00
  • Javascript学习第一季 一

    2008-06-24 17:51:00
  • mysql登录遇到ERROR 1045问题解决方法

    2024-01-22 15:09:57
  • 深入理解Python对Json的解析

    2023-10-18 20:01:38
  • go micro微服务proto开发安装及使用规则

    2024-03-19 14:40:13
  • ip地址和身份证的js验证代码

    2007-12-29 21:49:00
  • 教你利用python的matplotlib(pyplot)绘制折线图和柱状图

    2022-02-25 17:30:49
  • 让JavaScript拯救HTML5的离线存储[译]

    2009-05-15 12:26:00
  • Python Timer和TimerFPS计时工具类

    2022-06-13 12:48:38
  • pytorch 自定义卷积核进行卷积操作方式

    2021-07-24 22:54:39
  • asp之家 网络编程 m.aspxhome.com