I,m trying to build a mention plugin for ckeditor i started with this code
CKEDITOR.plugins.add('mention', {
init: function (editor) {
editor.on('key', function (event) {
console.log(String.fromCharCode(event.data.keyCode));
});
}
});
The problem is keyCode
property doesn't give an accurate result when it comes to getting the entered letter.
Is there a better way to get the entered letter accurately with respect to the language?