2

在我的 Rails 应用程序中,我有两个表单,每个表单中都有两个文本区域,应该与编辑器一起使用。我已经完美地集成了 TinyMCE 编辑器,它在页面加载时嵌入了文本区域。但我只能编辑第一个文本区域,我无法在第二个文本区域内获得鼠标点或光标点/在 Firefox 14.0.1 中根本不可编辑。此功能与 Chrome 和 IE 完美配合。我使用的文本区域具有以下 DOM 结构。

<textarea style="width: 426px; height: 117px; border: 1px solid rgb(209, 209, 209); float: left; display: none;" name="description" id="question-text" class="validate[required,funcCall[checkHELLO]] text-input description" aria-hidden="true">&lt;p&gt;bfdfghdfghd&lt;/p&gt;</textarea>


<textarea style="width: 426px; height: 117px; border: 1px solid rgb(209, 209, 209); float: left; display: none;" name="description" id="sub_question-text" class="validate[required,funcCall[checkHELLO]] text-input sub_description" aria-hidden="true"></textarea>

我不知道为什么第二个不可编辑。请帮忙。

4

0 回答 0