我用 django 创建了很多 tinymce:
<script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_mce.js"
</script>
<script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_init.js"
</script>
<script type="text/javascript">
tinyMCE.settings = configArray[1];
tinyMCE.execCommand('mceAddControl', true, "tobs");
</script>
{% for obs in obss %}
<div id="obs">
DateTime:<samp>{{ obs.date }}</samp><br>
Description: <br>
<textarea id="tobs" class="ro">{{ obs.description }}</textarea><br>
{% for f in obs.content %}
File:
<a href=Observations/{{f}} title="download file">
<script>
get_name("{{f}}")
</script>
</a><br>
{% endfor %}
Author:<samp>{{ obs.user }}</samp><br>
Type:<samp>{{ obs.category }}</samp><br><br>
</div>
{% empty %}
<br>Sorry, no observations in DataBase.
{% endfor %}
但问题是只有第一个 textarea 从 configArray[1] 获取我的设置,看起来像 tinymce,第二个和第三个只是没有 tinymce 设置的简单 textarea。
我怎样才能改变whis?