When using addAutocomplete the editors seems to break something. I have tried to follow the documentation and even seek the Copenhagen code to find out how to use add extra AutoComplete. May yout give me a clue on how to use this feature
const ed = new Copenhagen.Editor({ language: 'javascript' });
// open, but do not auto-focus the editor
ed.open(editor.value, false);
// set a value
ed.setValue('var message = `hello world`;');
ed.addAutocomplete('sel', function (editor, selection, inString, inComment) {
console.log(editor, selection, inString, inComment);
return 'some value '
});
When using addAutocomplete the editors seems to break something. I have tried to follow the documentation and even seek the Copenhagen code to find out how to use add extra AutoComplete. May yout give me a clue on how to use this feature