0
그래서 대부분 편집기를 inlineMode 용으로 설정했습니다.froala의 부모 div의 data-id 속성을 가져 오는 방법은 무엇입니까?
<article class="post editable" data-save-id="post-mission_statement">
$('.editable').editable({
inlineMode: true,
saveURL: 'http://www.unicon.church/admin/save.php',
saveRequestType: 'POST',
autosave: true,
autosaveInterval: 2500
});
$(".editable").on('editable.beforeSave', function (e, editor, data) {
// HOW THE HECK do I figure out what the data-save-id is?!?!
console.log(e);
// I want to do
// editor.option('saveParams', { postId: $(parentDiv).data('saveId') });
// but due to lack of examples and proper documentation, I don't even know if that is right.
});
가 어떻게 Froala에 다음 AJAX 요청에 편집 상자합니다 (post-mission_statement
)의 컨텍스트를 전달하지 PHP가 적절한 알아낼 수 있도록 :
여기처럼 내 구현 코드는 현재 모습입니다 데이터를 저장하는 기본 키?
많은 gracias, senor;) –