2017-12-21 17 views
0

저는 ckeditor 4와이 두 플러그인을 사용합니다 : EmojioneVideodetector.Ckeditor - emojione 플러그인이 비디오 검출기와 간섭합니다

function detectar(){ 
    var a=document.getElementsByClassName("cke_dialog_contents").item(0).getElementsByTagName("input").item(0).value, 
     b="", 
     c=""; 
    0<=a.indexOf("youtu.be")&&(c="youtube",b=a.substr... 
: 이것은 자바 스크립트 파일의 라인

Uncaught TypeError: Cannot read property 'value' of null 
    at detectar (VM2151 videoDialog.js?t=H8DA:4) 
    at CKEDITOR.dialog.onOk (VM2151 videoDialog.js?t=H8DA:1) 
    at CKEDITOR.dialog.<anonymous> (ckeditor.js:585) 
    at CKEDITOR.dialog.n (ckeditor.js:10) 
    at CKEDITOR.dialog.fire (ckeditor.js:12) 
    at button.onClick (ckeditor.js:608) 
    at button.<anonymous> (ckeditor.js:547) 
    at button.n (ckeditor.js:10) 
    at button.fire (ckeditor.js:12) 
    at button.click (ckeditor.js:546) 

: Emojione 팝업이 먼저 열려있는 경우, 다음 번에 내가 콘솔에서 다음과 같은 오류를 얻을 Videodetector 팝업에 비디오를 추가하려고

어떻게 든 emojione 플러그인이 비디오 플레이어를 방해하고 어떻게 수정해야할지 모르겠다. 나에게 몇 가지 제안을 해주시겠습니까?

답변

0

해결책을 찾았습니다. 다른 사람이 여기에이 문제가 있다면 나는 그것을 해결하는 방법입니다 Videodetector 플러그인 폴더에 dialogue.js에서

getElementsByClassName("cke_dialog_ui_input_text")[0].getElementsByTagName("input")[0]

변경 getElementsByClassName("cke_dialog_contents").item(0).getElementsByTagName("input").item(0)

.