2016-09-13 1 views
0

jquery-textcomplete을 ckeditor와 tinyMCE와 통합하려고했습니다.jQuery-textcomplete CKEditor/TinyMCE와의 통합

이 오류가 발생했습니다.

TypeError: CKEDITOR.instances.issue_notes is undefined 

jquery-textcomplete를 CKEditor/TinyMCE와 통합하는 데 약간의 도움을 줄 수 있습니까? 당신은 https://jsfiddle.net/btjapqkp/

HTML, 여기에 코드 샘플을 볼 수 이것은

<script src="https://code.jquery.com/jquery-3.1.0.js" type="text/javascript"> 
</script> 
<script src="https://cdn.ckeditor.com/4.5.10/standard/ckeditor.js"></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.5.10/adapters/jquery.js"> 
</script> 

자바 스크립트

$(document).ready(function(){ 
    tinymce.init({ selector:'#three' }); 
    $('#two').ckeditor(); 
    $('.editable').textcomplete([{ 
    match: /(^|\b)(\w{2,})$/, 
    search: function (term, callback) { 
     var words = ['google', 'facebook', 'github', 'microsoft', 'yahoo']; 
     callback($.map(words, function (word) { 
     return word.indexOf(term) === 0 ? word : null; 
     })); 
    }, 
    replace: function (word) { 
     return word + ' '; 
    } 
    }]); 
}); 

답변

0

때문에 JQuery와 - textcomplete 버그. 해당 문제를 해결하려면 URL을보십시오. 이 솔루션은 가까운 미래에 jquery-texcomplete에 통합 될 것입니다. 그런 다음 벨로우즈 솔루션을 따라갈 필요가 없습니다.

https://github.com/yuku-t/jquery-textcomplete/issues/285