Open zhixingxi opened 7 years ago
+1
rich_editor.js
RE.setBold = function() {
if (document.queryCommandState('bold') && !RE.rangeSelectionExists()) {
document.execCommand('bold', false, null);
document.execCommand('insertHTML', false, '‌');
} else {
document.execCommand('bold', false, null);
}
};
when I switch bold or underline in the "简体中文-拼音" of keyboard type, I always can't cancel bold or underline;