2012-11-23 4 views

답변

0

동적 알로하 인스턴스를 만들려면 :

$(document).ready(function(){ 
// Add an editable upon clicking on some button Button 
$("#Button").click(function() { 
    var $ = Aloha.jQuery; 
    $('#somewhere').append('<div class="editable" id="ed" ></div>'); 
    Aloha.jQuery('.editable').mahalo(); 
    Aloha.jQuery('.editable').aloha(); 
}); 

지금 당신은 단순히 내용을 얻을 수 있습니다 : 나는 그것을 테스트하지 않았습니다 만 작동합니다

var e = Aloha.getEditableById('ed'); 
getContents(); 

.