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 + ' ';
}
}]);
});