ckeditor를 사용하고 있습니다. 추가설정에서 자동저장 옵션에도 체크되어있습니다..만

자동저장이 안되네요. -_-a;

제목만 저장이 되고 본문은 저장이 안됩니다;

 

https://github.com/w8tcha/CKEditor-AutoSave-Plugin

이걸 깔아볼까 싶어서 일단 

/www/common/js/plugins/ckeditor/ckeditor/plugins/autosave

위 디렉토리에 설치를 했고요.

 

www\common\js\plugins\ckeditor\ckeditor\config.js

이 파일에서도

CKEDITOR.editorConfig = function( config ) {
    config.enterMode = 'CKEDITOR.ENTER_BR';
    config.fillEmptyBlocks = false;
    //config.extraPlugins = 'autosave';
    config.autosave = {
        // Auto save Key - The Default autosavekey can be overridden from the config ...
        Savekey : "autosaveKey",

        // Ignore Content older then X
        //The Default Minutes (Default is 1440 which is one day) after the auto saved content is ignored can be overidden from the config ...
        NotOlderThen : 1440,

        // Save Content on Destroy - Setting to Save content on editor destroy (Default is false) ...
        saveOnDestroy : false,

        // Setting to set the Save button to inform the plugin when the content is saved by the user and doesn't need to be stored temporary ...
        saveDetectionSelectors : "a[href^='javascript:__doPostBack'][id*='Save'],a[id*='Cancel']",

        // Notification Type - Setting to set the if you want to show the "Auto Saved" message, and if yes you can show as Notification or as Message in the Status bar (Default is "notification")
        messageType : "notification",

        // Show in the Status Bar
        //messageType : "statusbar",

        // Show no Message
        //messageType : "no",

        // Delay
        delay : 10,

        // The Default Diff Type for the Compare Dialog, you can choose between "sideBySide" or "inline". Default is "sideBySide"
        diffType : "sideBySide"
    };
};

이렇게 등록해줬습니다. 이렇게 하면 동작이 되는게 맞나요??;;

 

  • profile

    XE의 자동저장 기능은 CKEditor의 자동저장 플러그인과 전혀 무관합니다.

    이상한 플러그인을 깔아놓으면 오히려 충돌이 일어나서 더 안 될 수도 있어요.

  • profile
    xetown에 아마 자동저장기능 적용하는 팁 올라와 있을거에요 저도 예전에 적용해서 링크를 모르겠네요
  • profile
    https://github.com/xpressengine/xe-core/pull/1651/files 적용하시면 됩니다.