私は自分のウェブサイトのフォームで nicedit (http://nicedit.com/) を使用しようとしています (短編小説を送信するために使用しています)。フォームにはいくつかのテキストエリア () が含まれています。そのうちの 1 つは、nicedit を使用したい短編小説の内容です。他のテキスト領域はタグ用で、nicedit を使用したくありません。ただし、nicedit は両方に適用されます。
これは、nicedit コードを呼び出すために使用している JavaScript コードです。
<script type="text/javascript" src="core/rte.js"></script> <script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
nicEdit.js をチェックインすると、allTextAreas() がこれに対応します。
allTextAreas : function(nicOptions) {
var textareas = document.getElementsByTagName("textarea");
for(var i=0;i<textareas.length;i++) {
nicEditors.editors.push(new nicEditor(nicOptions).panelInstance(textareas[i]));
}
return nicEditors.editors;
},
また、インゲットネットで調査したところ、nicedit コードの影響を受けるテキスト領域を 1 つだけにする方法についての答えが見つかりませんでした。誰でも助けることができますか?