1
我使用Pagedown,它需要將id爲wmd-input
的textarea。這是寫在Markdown.Editor.js
如下:Pagedown使用類屬性而不是id
function PanelCollection(postfix) {
this.buttonBar = doc.getElementById("wmd-button-bar" + postfix);
this.preview = doc.getElementById("wmd-preview" + postfix);
this.input = doc.getElementById("wmd-input" + postfix);
};
但是我需要使用與文本域的不同ID項目的各個地方的編輯器。因此,使用class而不是id屬性會很好。如何實現這一目標?
我有完全相同的問題,你有沒有想過這個? – leen3o 2012-09-12 08:24:17