메뉴 건너뛰기

게시판 미리 보기 누르면 글이 등록되네요

게시판 미리 보기를 누르면 글이 등록되어 버립니다;;;

 

그리고 임시저장 로드를 클릭하고

임시저장된 글을 클릭하면

 

Uncaught TypeError: Cannot read property 'xeContentEditor' of undefined
    at a.callback (create:412)
    at a.onApply (draft.js:1)
    at HTMLAnchorElement.<anonymous> (draft.js:1)
    at HTMLDivElement.dispatch (vendor.js:72)
    at HTMLDivElement.m.handle (vendor.js:72)

 

로 자바스크립트 에러가 나네용

plugins/board/components/Skins/Board/Common/views/create.blade.php

파일의 다음 부분을

                XEeditor.getEditor('XEckeditor').editorList['xeContentEditor'].setContents(data.content);

 

아래 처럼 변경해서 수정하였더니 에러가 안나긴 하는데

                XE.app("Editor").then(function (Editor) {

                    Editor.getEditor('XEckeditor').then(function (editor) {

                        editor.editorList['xeContentEditor'].setContents(data.content);

                    });

                });

맞게 수정한건지 모르겠네요~

  • share