Skip to content

Commit 54a9fa7

Browse files
修复IE8-的bug
1 parent 9ab377a commit 54a9fa7

8 files changed

Lines changed: 31 additions & 6 deletions

File tree

‎dist/js/wangEditor-1.3.13.1.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,11 @@ if(!Array.prototype.indexOf){
36973697
return -1;
36983698
};
36993699
}
3700+
if (!Date.now) {
3701+
Date.now = function () {
3702+
return new Date().valueOf();
3703+
};
3704+
}
37003705
$.fn.extend({
37013706
/*
37023707
* options: {

‎dist/js/wangEditor-1.3.13.1.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/js/wangEditor.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,11 @@ if(!Array.prototype.indexOf){
36973697
return -1;
36983698
};
36993699
}
3700+
if (!Date.now) {
3701+
Date.now = function () {
3702+
return new Date().valueOf();
3703+
};
3704+
}
37003705
$.fn.extend({
37013706
/*
37023707
* options: {

‎dist/js/wangEditor.min.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/js/parts/181-arr-now.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if (!Date.now) {
2+
Date.now = function () {
3+
return new Date().valueOf();
4+
};
5+
}

‎src/js/wangEditor-1.3.13.1.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,11 @@ if(!Array.prototype.indexOf){
36973697
return -1;
36983698
};
36993699
}
3700+
if (!Date.now) {
3701+
Date.now = function () {
3702+
return new Date().valueOf();
3703+
};
3704+
}
37003705
$.fn.extend({
37013706
/*
37023707
* options: {

‎src/js/wangEditor.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3697,6 +3697,11 @@ if(!Array.prototype.indexOf){
36973697
return -1;
36983698
};
36993699
}
3700+
if (!Date.now) {
3701+
Date.now = function () {
3702+
return new Date().valueOf();
3703+
};
3704+
}
37003705
$.fn.extend({
37013706
/*
37023707
* options: {

‎test/test.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ <h3>wangEditor test</h3>
2121

2222

2323
<script type="text/javascript" src='../dist/js/jquery-1.10.2.min.js'></script>
24-
<script type="text/javascript" src='../dist/js/wangEditor.min.js'></script>
25-
<!--<script type="text/javascript" src='../src/js/wangEditor.js'></script>-->
24+
<!--<script type="text/javascript" src='../dist/js/wangEditor.min.js'></script>-->
25+
<script type="text/javascript" src='../src/js/wangEditor.js'></script>
2626
<script type="text/javascript">
2727
$(function(){
2828
var editor = $('#textarea1').wangEditor();

0 commit comments

Comments
 (0)