I have a sample Inline CkEditor 5
$(document).ready(function(){
InlineEditor.create(document.querySelector("#textarea"), {
toolbar: [
'heading', '|', 'bulletedList', 'numberedList', 'undo', 'redo'
]
}).then(editor => {
//need to highlight specific text ex: you
var sampleText = 'you';
//TODO//
}).catch(err => {
console.error(err.stack);
});
})
https://jsfiddle.net/1uo5jma7/1/
I need to find all matches text/sentence in my sample content and highlight it in the first load of the CKEditor.
I tried the answers of this question but I think its not same syntax