---
title: "fckeditor 检测输入长度"
author: "kim"
date: "2007-10-30T12:52:17Z"
tags: []
slug: "fckeditor"
draft: false
lastmod: "2007-10-30T12:52:17Z"
id: 136695
url: "https://kim.iteye.com/blog/136695"
---

取值的办法

FCKeditorAPI.GetInstance(ClientID).GetXHTML(true)

以下是设值的办法

FCKeditorAPI.GetInstance(ClientID).SetHTML("字符串")

利用JS插入一段字符串

FCKeditorAPI.GetInstance('content').SetHTML(FCKeditorAPI.GetInstance(''content'').GetXHTML(true) + "插入的字符串")