Open kakaxihoracker opened 3 years ago
zss_editor.setBold = function() {
// document.execCommand('bold', false, null); // zss_editor.enabledEditingItems(); if(document.queryCommandState('bold')) { document.execCommand('bold',false,'div'); document.execCommand('insertHTML',false,'‌'); }else{ document.execCommand('insertHTML',false,'<b>‌</b>'); zss_editor.enabledEditingItems(); }
}
After using this method, other states cannot coexist.
zss_editor.setBold = function() {
}