cheditor5 표만들기 등등
본문
cheditor5에서 표만들기 및 사진 등 버튼을 누르면
cheditor.js 에 오류가 표기되는데
iframe.contentWindow.init.call(self, iframe, popupAttr.argv || null); 이부분이 오류가 납니다.
콘솔창에서는
Uncaught TypeError: Cannot read properties of undefined (reading 'call')
at HTMLIFrameElement.popWinResizeHeight (cheditor.js:4664:43)
이런오류가 발생합니다
어떤 이유이며 해결방법이 있을까요?
답변 2
cheditor.js파일에서 contentWindow 속성이 정의 되지 않아서 발생 하는 오류 인 것으로 알고 있습니다.
그누보드 최신버전이 아니실 경우 최신버전의 cheditor.js 파일을 교체해보세요..
교체후에도 같은 증상일 경우 아래 cheditor.js 파일에서 iframe.contentWindow.init 함수를 찾아서 아래와 같이 수정후 테스트를 해보시면 될 것 같습니다.
if (typeof iframe.contentWindow.init === 'function') {
iframe.contentWindow.init.call(self, iframe, popupAttr.argv || null);
} else {
// init 함수가 없는 경우 예외 처리
console.error('init function is not defined in cheditor.js');
}
그누보드 5.5.8.3 버전을 이용중입니다.
말씀해주신대로 5.5.8.3.1 의 파일로 수정해보았습니다만 똑같은 오류가 발생합니다
같은 파일이시라고하신다면 cheditor.js의 4664부분인데
iframe.contentWindow.init 이걸 쓰는부분이 저기뿐입니다... 방법이없을까요?
답변을 작성하시기 전에 로그인 해주세요.