---
title: "让FCKeditor自动换行"
author: "hunan84229247"
date: "2010-12-21T10:03:31Z"
tags: ["CSS", "fckeditor"]
categories: ["编程语言"]
slug: "fckeditor"
draft: false
lastmod: "2010-12-21T10:03:31Z"
id: 847811
url: "https://hunan.iteye.com/blog/847811"
---

使用FCKEditor进行文本编辑时,当输入满一行时,FCKEditor会出现水平滚动条,而我希望它能够自动换行,而不是出现水平滚动条。

查看了所以源码后，找出以下解决方法：

 

找到fckeditor\\editor\\css\\fck\_editorarea.css文件，作如下修改

 

body, td  
{  
 font-family: Arial, Verdana, sans-serif;  
 font-size: 12px;  
 word-break:break-all;  
}

 

上面的红色代码是新增加的。

 

修改后，保存，浏览，一切OK~~~~~~~~~~~~~\`