`
topsale
  • 浏览: 22078 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

FCKeditor - JS操作FCKeditor

阅读更多
东西不多,却必须要用到。

代码如下:
//获取编辑器中HTML内容 
function getEditorHTMLContents(EditorName) { 
	var oEditor = FCKeditorAPI.GetInstance(EditorName); 
	return(oEditor.GetXHTML(true)); 
}

//获取编辑器中文字内容 
function getEditorTextContents(EditorName) { 
	var oEditor = FCKeditorAPI.GetInstance(EditorName); 
	return(oEditor.EditorDocument.body.innerText); 
}

//设置编辑器中内容 
function SetEditorContents(EditorName, ContentStr) { 
	var oEditor = FCKeditorAPI.GetInstance(EditorName) ; 
	oEditor.SetHTML(ContentStr) ; 
}
0
1
分享到:
评论

相关推荐

    fckeditor-java-2.4.1-src.zip

    jsp,FCKeditor整合包 This is the JSP Integration Pack for using FCKeditor inside a java server page without the complexity of using a Java scriptlets or the javascript api.

    FCKeditor_2.6.3.zip+FCKeditor-2.3.zip

    FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器。它志于轻量化,不需要太复杂的安装步骤即可使用。它可和PHP、JavaScript、ASP、ASP.NET、ColdFusion、Java、以及ABAP等不同的编程语言相结合...

    FCKeditor-2.6.6 php HTML编辑器(附带图文安装)

    FCKeditor-2.6.6 php HTML编辑器(附带图文安装) FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器。它志于轻量化,不需要太复杂的安装步骤即可使用。它可和PHP、JavaScript、ASP、ASP.NET、...

    fckeditor所需的jar包集合以及java源文件:fckeditor-java-2.6-src

    FCKeditor是一个专门使用在网页上属于开放源代码的所见即所得文字编辑器。它志于轻量化,不需要太复杂的安装步骤即可使用。它可和PHP、JavaScript、ASP、ASP.NET、ColdFusion、Java、以及ABAP等不同的编程语言相结合...

    FCKeditor 源代码 js bin

    FCKeditor FCKeditor 源代码 / FCKeditor for java FCKeditor_2.6.6.zip fckeditor-java-2.4.2-bin.zip fckeditor-java-2.4.2-src.zip fckeditor-java-demo-2.4.2.war

    fckeditor学习笔记

    方法一:通过javascript调用(前提是在head里要引入<script type="text/javascript" src="fckeditor/fckeditor.js">文件) 1.创建并输出一个编辑器(参见fckeditortest项目test1.html) 2.用编辑器递换一个TextArea...

    FCKEditor Simple Demo

    <script type="text/javascript" src="<%=basePath %>fckeditor/fckeditor.js"> <script type="text/javascript"> window.onload = function(){ //var sBasePath = document.location.href.substring(0,...

    FCKeditor图片上传并显示

    修改文件径fckeditor--ditor--dialog--fck_image中的fck_image.js、fckconfig.js等等花时间琢磨一下. 其中还有我自己改写的公共类,带"image"标识的文件,希望大家都详细看看,改过的地方很多,就不例举了。希望大家...

    fckeditor_2.6.3_Full

    FCKeditor_2.6.3.zip fckeditor-java-2.4-bin.zip fckeditor-java-2.4-src.zip fckeditor-java-demo-2.4.war 全套整理好了提供下载,自己找个完整的发了点时间,提供完整下载,方便网友~

    fckeditor.js文件中文注释

    fckeditor.js文件中文注释 更新可以查看文章: http://blog.csdn.net/nileader4dev/archive/2010/12/12/6070727.aspx

    FCKeditor-test

    <script type="text/javascript" src="${base}/static/scripts/tinymce/jscripts/tiny_mce/tiny_mce.js"> <script type="text/javascript"> tinyMCE.init({ // General options mode : "exact", elements : ...

    fckeditor.js

    fckeditor主要文件,要了可以联系我哈。

    FCKeditor的一些说明

    再把FCKeditor.java 2.3中的web目录下的WEB-INF目录copy到mysite下(里面有commons-fileupload.jar, FCKeditor-2.3.jar,web.xml等几个文件), 把其中的src目录下的FCKeditor.tld文件copy到mysite/WEB-INF/下....

    fckeditor2.6.3 完整版

    <script type="text/javascript" src="/fckeditor/fckeditor.js"> 其中路径是可更改的 2,现在,FCKEDITOR类已经可以使用了.有两个方法在页面中建立一个FCKEDITOR编辑器: 方法1:内联方式(建议使用):在页面的FORM标记内...

    javascript获取FCKeditor内容

    javascript获取FCKeditor内容

    JSP 页面中使用FCKeditor控件(js用法)

    FCKeditor控件请到官方网站下载http://www.fckeditor.net,本例主要用到FCKeditor_2.6.3.zip、fckeditor-java-demo-2.4.1.zip、fckeditor-java-2.4.1-bin.zip里面的一些内容,读者可以自行下载。 1. 解开压缩包...

    FCKeditor demo(用JS方式)

    FCKeditor demo(用JS方式)

    fckeditor的MVC版及js使用fckeditor的方法

    fckeditor的MVC版及js使用fckeditor的方法,初步的,深入的请自行研究

    FCKeditor使用指南

    3.1 Js创建FCKeditor实例: 4 3.1.1 方法一:内嵌方法(推荐) 4 3.1.2 方法二:替换页面中的Textarea 5 3.1.3 方法三:适合于Ajax的调用方法 6 3.1.4 Js中FCKeditor对象的属性(集合)和方法 6 3.1.4.1 属性 6 3.1.4.2 ...

    javascript获取FCKeditor内容.txt

    javascript获取FCKeditor内容.txt

Global site tag (gtag.js) - Google Analytics