我有一些文本区域:
<textarea id="temp1">Hello</textarea>
<textarea id="temp2">Hello</textarea>
...
我在它们上初始化 jwysiwyg:
$('#temp1').wysiwyg();
$('#temp2').wysiwyg();
我还有一个用于保存内容的自定义按钮。现在我怎样才能获得原始的 textarea dom 元素?(我需要在这里区分 jwysiwyg 的几次出现。)
function Wysiwyg() {
this.controls = {
save: {
exec: function () {
// Magically find the id of the original textarea plx.
...
谢谢...