htmleditor
文章平均质量分 64
woshixushigang
这个作者很懒,什么都没留下…
展开
-
html文本编辑器--基于Html
以前一直不知道好多网站上所说的在线编辑器是怎么回事,后来在文档里发现document 对象的一个方法。document.execCommand(command, false, value);才知道具体原理。一、首先来看一个例子:<DIVcontenteditable="true"style="border:dashed blue 2px">Hello World!...原创 2011-10-10 22:45:09 · 157 阅读 · 0 评论 -
spring与ckeditor整合
jsp部分代码<tr><th style="height: 20px;">案例正文<em>(必填)</em></th><td>最多填写2000字</td></tr><tr><原创 2011-11-02 14:11:08 · 102 阅读 · 0 评论 -
ckeditor报错ckeditor 使用 uncaught exception: [CKEDITOR.editor] The instance
config_front.js $(function() {CKEDITOR.editorConfig = function( config ){/* config.language = 'zh-cn'; config.toolbar = 'Background'; config.toolbar_Background = [ ['Bold','Ital...原创 2011-11-08 16:51:10 · 376 阅读 · 0 评论 -
ckeditor取值赋值问题
最近的项目中遇到个很头疼的问题,异步提交表单后需要清空表单数据,项目中文本编辑器是ckeditor,用了好几种方式都无法将提交后的表单清空。最后发现这种方式可以: document.form1.reset(); CKEDITOR.instances.caseText.setData(' '); 开始采用jquery的 $("#caseText").val(''...原创 2011-11-13 17:12:41 · 791 阅读 · 0 评论 -
ckeditor取值赋值
CKEditor 是著名的 HTML 编辑器,IBM、Oracle、Adobe 等都在用。CKEditor 创建于 2003 年,其前身为 FCKEditor,在 2009 年的时候把“F”去掉了,更名为 CKEditor。其开源协议是基于 GPL, LGPL 和 MPL 的。官方网站:http://ckeditor.com/一般来说,我们在编辑内容时,先是读入到 textarea,再将...原创 2011-11-13 17:14:30 · 370 阅读 · 0 评论 -
ckeditor自动换行问题
项目中用到ckeditor,研究源码之后得到适合我公司的编辑器,但是发现不自动换行,网上也找了很多方案,就是不好用。 解决方案:centent.css 里面加上 body,p{word-wrap:break-word;} ...原创 2011-11-18 19:39:21 · 922 阅读 · 0 评论