From af08cc9881e508a2f0a1d7af55f6a0fcd6f660b0 Mon Sep 17 00:00:00 2001 From: Jinqn <459452372@qq.com> Date: Tue, 10 Jun 2014 17:28:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E9=85=8D=E7=BD=AE=E9=A1=B9=E4=B8=8D=E8=B5=B7=E4=BD=9C?= =?UTF-8?q?=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _src/plugins/autosave.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/_src/plugins/autosave.js b/_src/plugins/autosave.js index cea38ee79..81c34ffe1 100644 --- a/_src/plugins/autosave.js +++ b/_src/plugins/autosave.js @@ -45,7 +45,8 @@ UE.plugin.register('autosave', function (){ return { defaultOptions: { //默认间隔时间 - saveInterval: 500 + saveInterval: 500, + enableAutoSave: true }, bindEvents:{ 'ready':function(){ @@ -66,6 +67,10 @@ UE.plugin.register('autosave', function (){ 'contentchange': function () { + if (!me.getOpt('enableAutoSave')) { + return; + } + if ( !saveKey ) { return; }