---
title: "JavaScript中获取FCKeditor中的内容"
author: "lxsgoodluck"
date: "2009-05-23T10:45:39Z"
tags: []
categories: ["Web前端"]
slug: "javascript-fckeditor"
draft: false
lastmod: "2009-05-23T10:45:39Z"
id: 393987
url: "https://webwork.iteye.com/blog/393987"
---

var oEditor = FCKeditorAPI.GetInstance('content');//content是fck实例的名称,也是表单文本框的名称
oEditor.UpdateLinkedField();//获得内容更新，不做这步操作的话，可能要点第二次才能得到内容结果
oEditor.GetXHTML(true)//即为输出结果

注：在JavaScript中获得