kakao / DaumEditor

[DEPRECATED] Open Source Online WYSIWYG HTML Editor
Other
218 stars 116 forks source link

typeof(execAttach)가 계속 undefined 됩니다. #524

Open WickedMISO opened 7 years ago

WickedMISO commented 7 years ago

다음 에디터를 호출할 board.php 에서

<?php include_once ("../daumEditor/editor.html"); ?>

로 할경우 이미지 등록을 시도한뒤.

이미지 첨부 팝업창을 띄워서 '등록'버튼을 클릭시.

파이어폭스(Error: Permission denied to access property "Editor") 크롬(Blocked a frame with origin "도메인주소" from accessing a cross-origin frame.(…))

과 같이 나타나 부모창의 경로를 찾지 못하고 있습니다.

include 하는 board.php 파일과 editor.html 파일을

같은 경로에 두었을 경우에는.

위와같은 스크립트 에러가 발생하지 않고 잘 넘어가 지는데요.

서로 다른 경로에 존재할경우 위와 같은 문제가 발생합니다.

popup.js 파일을 수정해야 할것 같은데.

어디를 어떻게 수정해야 할지 답변 주시면 감사하겠습니다.

WickedMISO commented 7 years ago

해결 했습니다. 도메인 주소에서 테스트 하고 있엇는데. 실제 코드에는 절대경로 값을 ip 주소 로 때려 박아 두어서 발생했던 문제 였네요.