0
我想提交表格從Tinymce模糊事件中,但這似乎並沒有工作。Tinymce提交模糊事件表格
tinymce.init({
selector: 'textarea.html',
menubar:false,
force_br_newlines : true,
force_p_newlines : false,
resize: false,
setup: function (editor) {
var val;
editor.on('focus', function(e) {
val = editor.getContent();
});
editor.on('blur', function(e) {
editor.save();
if(val!=editor.getContent()){
$(this).submit();
}
});
editor.on('change', function() {
editor.save();
});
}
});
我知道錯誤是從$(this).submit();
原因表格選擇是錯誤的,但我無法弄清楚如何去選擇有問題的形式。任何人有想法?提前致謝!
什麼是你''
@MichaelFromin感謝您的評論,設法找到解決方案。 –