2
.load()를 사용하여 div load에서 jquery .wysiwyg 편집기를 사용하려고하는데 작동하지 않습니다. 게임 코드는 div의 바깥쪽에 있으며 페이지의 맨 아래에는 나머지 jquery가 있습니다. div에 직접 jquery를 배치하는 테스트를 해봤지만 정상적으로 작동하지만 매우 정교하지는 않습니다.jquery가로드 된 div에서 작동하지 않습니다.
여기 jquery 코드가 있습니다. 저는 누군가 제가 올바른 방향으로 나를 가리킬 수 있다면 큰 감동을받을 수 있다고 생각합니다. 내가 잘못 사용하고 있다고 확신합니다.
$('#editBrandEmail').live('click', function(){
$('#editBrandEmailDiv').load($('#editBrandEmail').attr('href'));
$('.wysiwyg').wysiwyg({
controls: {
strikeThrough : { visible : true },
underline : { visible : true },
justifyLeft : { visible : true },
justifyCenter : { visible : true },
justifyRight : { visible : true },
justifyFull : { visible : true },
indent : { visible : true },
outdent : { visible : true },
subscript : { visible : true },
superscript : { visible : true },
undo : { visible : true },
redo : { visible : true },
insertOrderedList : { visible : true },
insertUnorderedList : { visible : true },
insertHorizontalRule : { visible : true },
h4: {
visible: true,
className: 'h4',
command: $.browser.msie ? 'formatBlock' : 'heading',
arguments: [$.browser.msie ? '<h4>' : 'h4'],
tags: ['h4'],
tooltip: 'Header 4'
},
h5: {
visible: true,
className: 'h5',
command: $.browser.msie ? 'formatBlock' : 'heading',
arguments: [$.browser.msie ? '<h5>' : 'h5'],
tags: ['h5'],
tooltip: 'Header 5'
},
h6: {
visible: true,
className: 'h6',
command: $.browser.msie ? 'formatBlock' : 'heading',
arguments: [$.browser.msie ? '<h6>' : 'h6'],
tags: ['h6'],
tooltip: 'Header 6'
},
cut : { visible : true },
copy : { visible : true },
paste : { visible : true },
html : { visible: true }
}
});
return false;
});
굉장히 감사합니다! – flyersun