mirror of https://gitee.com/y_project/RuoYi.git
修复富文本回退键被禁止&控制台报错问题
parent
3ea3edc6ba
commit
4315c0983d
File diff suppressed because one or more lines are too long
|
@ -499,6 +499,12 @@ window.onload = function() {
|
||||||
if (event.keyCode == 8) {
|
if (event.keyCode == 8) {
|
||||||
// 判断是否需要阻止按下键盘的事件默认传递
|
// 判断是否需要阻止按下键盘的事件默认传递
|
||||||
var name = elem.nodeName;
|
var name = elem.nodeName;
|
||||||
|
var className = elem.className;
|
||||||
|
// 屏蔽特定的样式名称
|
||||||
|
if (className.indexOf('note-editable') != -1)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (name != 'INPUT' && name != 'TEXTAREA') {
|
if (name != 'INPUT' && name != 'TEXTAREA') {
|
||||||
return _stopIt(event);
|
return _stopIt(event);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue